enable to stop reconnecting

This PR enables to stop reconnecting even in the process of it by calling `disconnect()`.

related:
https://github.com/Automattic/socket.io-client/issues/737
https://github.com/Automattic/socket.io/issues/1824