Added the "id" parameter to the client Socket object

This commit is contained in:
Damian Connolly
2015-07-12 00:04:42 +02:00
parent 9c07a9d602
commit 6169c072ea

View File

@@ -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