[refactor] Keep the Socket.IO client-side library in our repo

This allows us to patch the library.
[patch] Patch the Socket.IO client to make it work when it is wrapped in a function