From 52462e5ed1d53ca70de20d488ff3dfe903cd48a1 Mon Sep 17 00:00:00 2001 From: Ronald Crooy Date: Sun, 3 Feb 2013 01:21:01 +0100 Subject: [PATCH] fixed socket io emit function --- socket.io/socket.io.d.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/socket.io/socket.io.d.ts b/socket.io/socket.io.d.ts index 2e61c8a5c2..aace10d9a1 100644 --- a/socket.io/socket.io.d.ts +++ b/socket.io/socket.io.d.ts @@ -29,7 +29,8 @@ interface Socket { del(key: string, fn: Function): Socket; disconnect(): Socket; send(data: any, fn: Function): Socket; - emit(ev: any): Socket; + emit(ev: any, ...data:any[]): Socket; + on(ns: string, fn: Function): Socket; } interface SocketNamespace { @@ -43,7 +44,7 @@ interface SocketNamespace { to(room: string): SocketNamespace; except(id: any): SocketNamespace; send(data: any): any; - emit(data: any): any; + emit(ev: any, ...data:any[]): Socket; socket(sid: any, readable: bool): Socket; authorization(fn: Function); }