mbenford/ngSocketIO — pull request #2 by Hcu (2013-12-08 12:20:33+00:00)
Title: Added disconnect method to the directive

Hi,

Added a disconnect method because I noticed that in my Angular app when I have a controller that uses a socket, upon navigating to a different route, the socket is still alive and well on the controller (that should have been destroyed?).

Hence I added a disconnect method to the socket that I can call on the destroy event of my controller to disconnect the socket properly.

Test for the disconnect included.
Cheers!