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.
Website:http:/ / peerjs. com/
License: MIT License