Add id to Socket interface

Although not clearly documented, the Socket object has a string 'id' attribute (see https://github.com/LearnBoost/socket.io/blob/master/lib/socket.js)
This commit is contained in:
Lukas Olson
2013-09-16 15:10:41 -06:00
parent 1ee70efa3a
commit 75563a29af
+1
View File
@@ -15,6 +15,7 @@ declare module "socket.io" {
}
interface Socket {
id: string;
json:any;
log: any;
volatile: any;