mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 17:20:09 +00:00
5
socket.io/socket.io.d.ts
vendored
5
socket.io/socket.io.d.ts
vendored
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user