In the following article: WebRTC Cookbook Article
is explained how a java signaling server can be implemented.
It is said that:
So both clients exchange the necessary data (including network details) and then establish direct peer-to-peer connection. After the connection is established, peers don't use the server anymore.
But looking at the code the server is still needed to relay the communication to all clients (sendToAll-method).
Can anyone explain me how a direct peer-to-peer communication is possible with such a code? I still can't figure out how 2 (or more) clients can communicate p2p.