Where is the Socket.IO client-side .js file located?

I managed to eventually answer this for myself.

The socket.io getting started page isn’t clear on this, but I found that the server side of socket.io automatically hosts the .js file on starting node, in the directory specified in the documentation:

"https://stackoverflow.com/socket.io/socket.io.js"

So you literally just point to this url regardless of your web app structure, and it works.

Leave a Comment