From fcc48530e36f079533a702a9ed68862913dfab3f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elis=C3=A9e?= Date: Wed, 29 Apr 2015 23:00:06 +0200 Subject: [PATCH 1/2] socket.io: SocketIO.Namespace has an "in" method --- socket.io/socket.io.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/socket.io/socket.io.d.ts b/socket.io/socket.io.d.ts index 258b573d5..ba7a5ba70 100644 --- a/socket.io/socket.io.d.ts +++ b/socket.io/socket.io.d.ts @@ -46,6 +46,7 @@ declare module SocketIO { name: string; connected: { [id: string]: Socket }; use(fn: Function): Namespace; + in(room: string): Namespace; on(event: 'connection', listener: (socket: Socket) => void): Namespace; on(event: 'connect', listener: (socket: Socket) => void): Namespace; From c3a1f48983487c1d1bb6ddb35973931e7bb320af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Elis=C3=A9e=20Maurer?= Date: Thu, 30 Apr 2015 06:12:32 +0200 Subject: [PATCH 2/2] Add SocketIO.Socket.handshake --- socket.io/socket.io.d.ts | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/socket.io/socket.io.d.ts b/socket.io/socket.io.d.ts index ba7a5ba70..ac5381f09 100644 --- a/socket.io/socket.io.d.ts +++ b/socket.io/socket.io.d.ts @@ -59,6 +59,17 @@ declare module SocketIO { conn: any; request: any; id: string; + handshake: { + headers: any; + time: string; + address: any; + xdomain: boolean; + secure: boolean; + issued: number; + url: string; + query: any; + }; + emit(name: string, ...args: any[]): Socket; join(name: string, fn?: Function): Socket; leave(name: string, fn?: Function): Socket;