This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var wrtc = require('wrtc'); | |
var pcs = [], | |
done = [], | |
MAX_PCS = 30; | |
pcoptions = { | |
iceServers: [] | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var RTCPeerConnection = require('wrtc').RTCPeerConnection; | |
var RTCIceCandidate = require('wrtc').RTCIceCandidate; | |
var RTCPeerConnectionIceEvent = require('wrtc').RTCPeerConnectionIceEvent; | |
var pc1 = new RTCPeerConnection(null); | |
var pc2 = new RTCPeerConnection(null); | |
var channel = pc1.createDataChannel(null, {}); | |
channel.onopen = function(ev) { | |
console.log('open'); |
NewerOlder