LearnBoost/socket.io-client — pull request #664 by yujiosaka (2014-05-14 08:16:22+00:00)
Title: socket should be disconnected when using namespace

socket.onDisconnect() was not called on client side when socket.disconnect() was called with using namespace on server side.

Therefore, transports were not closed and kept waiting for incoming packets.

This could cause a trouble when server is restarted or connection disrupted.
Browser consoles will show "Failed to load resources", for example, even after socket.disconnect() was called on server.

Related issue I found is: https://github.com/LearnBoost/socket.io/issues/795

This fix is very simple and it just call socket.onDisconnect() when using namespace.