I found the answer for anyone who gets immensely confused by the horrible lack of documentation of socket.io
.
You cannot source /socket-lib/socket.io.js
,
you must source http://yourwebsite.com:12345/socket.io/socket.io.js
.
The server automatically does the rest for you.