- From: Melvin Carvalho <melvincarvalho@gmail.com>
- Date: Thu, 14 Feb 2013 15:21:51 +0100
- To: public-rww <public-rww@w3.org>
Received on Thursday, 14 February 2013 14:22:23 UTC
PeerJS completes WebRTC as an API abstraction, connection broker, and binary serialization format http://peerjs.com/ Listener ============== var peer = new Peer('someid', {key: 'apikey'}); peer.on('connection', function(conn) { conn.on('data', function(data){ // Will print 'hi!' console.log(data); }); }); Sender ============== var peer = new Peer('anotherid', {key: 'apikey'}); var conn = peer.connect('someid'); conn.on('open', function(){ conn.send('hi!'); }); ==============
Received on Thursday, 14 February 2013 14:22:23 UTC