You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
filepizza/node_modules/filepizza-peer/client.js

32 lines
748 B
JavaScript

var Peer = require('peerjs')
var uuid = require('node-uuid')
var id = uuid.v4()
module.exports = new Peer(id, {
host: window.location.hostname,
port: window.location.port,
path: '/peer',
config: {
iceServers: [{
'url': 'stun:stun.l.google.com:19302'
}, {
'url': 'turn:52.12.205.113:3478?transport=udp',
'username': 'file',
'credential': 'pizza'
}, {
'url': 'turn:52.12.205.113:80?transport=udp',
'username': 'file',
'credential': 'pizza'
}, {
'url': 'turn:52.12.205.113:3478?transport=tcp',
'username': 'file',
'credential': 'pizza'
}, {
'url': 'turn:52.12.205.113:80?transport=tcp',
'username': 'file',
'credential': 'pizza'
}]
}
})