mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
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:
Vendored
+1
@@ -15,6 +15,7 @@ declare module "socket.io" {
|
||||
}
|
||||
|
||||
interface Socket {
|
||||
id: string;
|
||||
json:any;
|
||||
log: any;
|
||||
volatile: any;
|
||||
|
||||
Reference in New Issue
Block a user