PeerJS — A JavaScript Library For True Peer-To-Peer Data In The Browser
Join the DZone community and get the full member experience.
Join For Freepeerjs is a javascript library which acts as a wrapper for webrtc and allows you to create peer connections very easily. with peerjs you can create such a connection in just 3 lines of code.
peerjs deals with the webrtc handshake and allows connection by peer id. however, to establish a connection, you need a peerserver. this is written in node.js and you need to set it up.
no data passes through the server – it is only used to broker the connection between peers.
requirements:
node.js
website:
http:/ / peerjs. com/
license:
mit license
Published at DZone with permission of Hirvesh Munogee, DZone MVB. See the original article here.
Opinions expressed by DZone contributors are their own.
Comments