mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-10 11:40:16 +08:00
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:
+1
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user