title: websocket socket.io dir nodejs
body: <p>I have a question regarding socket.io and dir</p>
  
  <p>I have an api to validate login / jwt and etc</p>
  
  <p>I'm starting to create a websocket server to create a joken po game,
  one question i already have this api folder, should i create my websocket server inside this src? Or is it better to create another folder for this separate websocket server and it will consume my login api and others dates</p>
  
  <p>and about having to pass html directory on nodejs to use socketio ex:</p>
  
  <pre><code>webApp.get ('/', (req, res, next) =&gt; {
  res.sendFile (__ dirname + 'game.html'
  });
  </code></pre>
  
  <p>How would I do if I create in a separate folder from my front end how would I be able to communicate?
  ex: my front end in front end folder
  my back end in backend folder</p>