From 14b919fedf43a0e6c1f16545c2aaf45fe76d7d23 Mon Sep 17 00:00:00 2001 From: joswhite Date: Wed, 8 Jul 2015 16:09:35 -0600 Subject: [PATCH] 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." --- socket.io-client/socket.io-client.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/socket.io-client/socket.io-client.d.ts b/socket.io-client/socket.io-client.d.ts index c5d783764..c51665d49 100644 --- a/socket.io-client/socket.io-client.d.ts +++ b/socket.io-client/socket.io-client.d.ts @@ -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; }