title: Socket.io path on client, how to match it to my node.js server directory tree?
body: <p>I'm using socket.io over node.js, with Expressjs.  When I serve up my html page, I have the socket.io.js file link hardcoded in a script tag:
  <code>&lt;script src="/socket.io/socket.io.js"&gt;&lt;/script&gt;</code></p>
  
  <p>I'm not sure how to match that to my directory tree.  It is as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/FYXI9.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FYXI9.jpg" alt="enter image description here"></a></p>
  
  <p>It resides buried down in the 'node_modules' folder.</p>
  
  <p>My index.js looks like this:</p>
  
  <pre><code>const PORT = 3000;
  const express = require("express");
  const server = express();
  const http = require("http").Server(server);
  const path = require("path");
  const io = require("socket.io")(http);
  
  server.use(express.static(path.join(__dirname + "/public")));
  server.use(express.static(__dirname + "/public/css"));
  server.use(express.static(__dirname + "/public/js"));
  
  
  server.listen(PORT, function() {
        console.log("server listening on port " + PORT);
  });
  
   io.on("connection", function(socket){
        console.log("user connected");
  });
  </code></pre>