title: Can I create a websocket server using JavaScript (client-side)?
body: <p>I have just seen that the <a href="https://developer.mozilla.org/docs/Web/API/WebSockets_API/WebSockets_reference$revision/848563" rel="nofollow noreferrer">Websockets reference</a> MDN article says</p>
  
  <blockquote>
    <p><a href="https://developer.mozilla.org/docs/Web/API/WebSocketserver" rel="nofollow noreferrer"><code>WebSocketServer</code></a></p>
    
    <p>Used for opening a new WebSocket server. Required information is (port, origin, location).</p>
  </blockquote>
  
  <p>Then, does it mean I can create a websocket server client-side?</p>
  
  <p>If that's it, does it mean I can turn this... (each arrow is a websocket connection)</p>
  
  <p><img src="https://i.stack.imgur.com/AProd.gif" alt="enter image description here"></p>
  
  <p>...into this?</p>
  
  <p><img src="https://i.stack.imgur.com/AOGUO.gif" alt="enter image description here"></p>
  
  <p>But, do browsers have the power of doing that without any router/firewall configuration?</p>
  
  <p>And how can I use it? The <a href="https://developer.mozilla.org/docs/Web/API/WebSocketserver" rel="nofollow noreferrer"><code>WebSocketServer</code> link</a> is broken. And I have tried searching it but I haven't found anything.</p>