title: Java signaling server for webrtc
body: <p>In the following article:
  <a href="https://www.packtpub.com/mapt/book/Application-Development/9781783284450/1/ch01lvl1sec10/Building%20a%20signaling%20server%20in%20Java" rel="nofollow noreferrer">WebRTC Cookbook Article</a></p>
  
  <p>is explained how a java signaling server can be implemented.</p>
  
  <p>It is said that:</p>
  
  <blockquote>
    <p>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.</p>
  </blockquote>
  
  <p>But looking at the code the server is still needed to relay the communication to all clients (sendToAll-method).</p>
  
  <p>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.</p>