title: Using socket.io with net socket in nodejs
body: <p><br>
  <br></p>
  
  <p>Is there a way that i can use socket.io with net socket in nodejs ? so at the end i have main service that listen on port , waiting for connection (net socket) and main while listen to client's want establish connection using socket.io . </p>
  
  <p><strong>Example scenario:</strong><br></p>
  
  <ul>
  <li><p>Main service running listing on port X for any connection request from client service .</p></li>
  <li><p>client's open web browser connected to the main service using http server</p></li>
  <li><p>in case of any incoming data from client service (server B) through net socket , the data will be sent through socket.io to connected client opening browser . 
  <br>
  <br>
  <br>
  <br></p></li>
  </ul>
  
  <p><a href="https://i.stack.imgur.com/Ydwdx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Ydwdx.png" alt="Digram"></a></p>