Yes, you definitely need a "messaging server." Your task is to transfer SDP from one client to another. SDP includes ICE candidates who basically tell the client how to directly "reach" another (IP address + port combination). Once clients have exchanged these โhandshakeโ signals, they can begin to transmit their flows to peers.
Now the implementation of this server is completely left to you. Since it is separate from the rest of the WebRTC API, you can safely use any technology to allow these signaling messages to be exchanged between two clients. And once you have successfully installed PeerConnection , you can even use DataChannels to reconcile from there.
To take stock,
- Yes, you need a server to transfer messages between two clients.
- Since this does not depend on the implementation of WebRTC, you can resort to any technology of your choice.
source share