0

The code of the PeerServer for PeerJS mostly consists of WebSockets. I don't see any references to WebRTC.

Why are they using WebRTC for connections to the PeerServer? Is this not possible using WebRTC?

In that case, are there really any differences between using Socket.IO or PeerJS for sending messages between clients?

Kevin Van Ryckegem
  • 1,915
  • 3
  • 28
  • 55
  • Because WebRTC is client technology, and does not solve [discovery](http://stackoverflow.com/a/29056385/918910). – jib May 03 '17 at 13:23
  • Yes, that's right, peerjs does the job of helping you find the other party - it is the signalling server - once you know where they are, you can open a webrtc connection to them – Mikkel May 20 '17 at 06:44

1 Answers1

2

WebRTC only contemplates the connection part between to peers that know each other, as the discovering part is left to be solved by another tool, peerjs is a good tool to that matter...