Add disconnect method

See https://github.com/Automattic/socket.io-client/issues/737 - "v1.2.0. You can stop reconnection by calling disconnect method now."
This commit is contained in:
joswhite
2015-07-08 16:09:35 -06:00
parent 793f52d261
commit 14b919fedf
+1
View File
@@ -27,6 +27,7 @@ declare module SocketIOClient {
emit(event: string, ...args: any[]): Socket;
listeners(event: string): Function[];
hasListeners(event: string): boolean;
disconnect(): void;
connected: boolean;
}