title: how react js acts as a websocket client?
body: <p>I want to create a Websocket based client-server Application. In that I'm created node js websocket server which is waiting for the clients. Now I want to create react js websocket client. I'm using react js as a websocket because I have to render elements continuously which server sends as a simple text message.</p>
  
  <p>I'm struck at implementing the react js as  a websocket client. How it should work as a websocket client and how it will send request to the websocket server just like this :</p>
  
  <pre><code>'ws://localhost:1234'
  </code></pre>
  
  <p>I want to know more about websocket client and also want to solve this issue?</p>