From 6169c072eae80fc02e31bc8bd0a2baf3fc4549cb Mon Sep 17 00:00:00 2001 From: Damian Connolly Date: Sun, 12 Jul 2015 00:04:42 +0200 Subject: [PATCH] Added the "id" parameter to the client Socket object --- socket.io-client/socket.io-client.d.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/socket.io-client/socket.io-client.d.ts b/socket.io-client/socket.io-client.d.ts index 7e15773e6d..42d3664128 100644 --- a/socket.io-client/socket.io-client.d.ts +++ b/socket.io-client/socket.io-client.d.ts @@ -177,6 +177,12 @@ declare module SocketIOClient { */ nsp: string; + /** + * The ID of the socket; matches the server ID and is set when we're connected, and cleared + * when we're disconnected + */ + id: string; + /** * Are we currently connected? * @default false