Declare Socket.conn as any

SocketIO.Socket.conn is an EngineIO.Socket, not a SocketIO.Socket so use any rather declaring as the wrong type.
This commit is contained in:
Elisée
2015-03-11 19:59:40 +01:00
parent c594427c40
commit b66b42f5d4
+1 -1
View File
@@ -55,7 +55,7 @@ declare module SocketIO {
interface Socket {
rooms: string[];
client: Client;
conn: Socket;
conn: any;
request: any;
id: string;
emit(name: string, ...args: any[]): Socket;