peer-connection
A nicer peer connection api
Example
var PeerConnection = shim = realDeal = windowRTCPeerConnection signal = // Either use the shim to open a peer connectionvar pc = // or use the real dealvar pc = // Get a pair of peer connectionsvar pc1 pc2 = ... // Then use the simplified api!pc1 signal signal // With data channels!pc2 var stream = pc1stream
Installation
npm install peer-connection
Contributors
- Raynos