Rather than kludging up a (bad) guess at the host and deleting it manual...

...ly, just pass in the 'force new connection' option, which forces socket.io to refresh the socket.