diff --git a/socket.io/socket.io.d.ts b/socket.io/socket.io.d.ts index d1b4a4863..8d137d7af 100644 --- a/socket.io/socket.io.d.ts +++ b/socket.io/socket.io.d.ts @@ -23,7 +23,7 @@ interface Socket { in(room: string): Socket; to(room: string): Socket; join(name: string, fn: Function): Socket; - unjoin(name: string, fn: Function): Socket; + leave(name: string, fn: Function): Socket; set(key: string, value: any, fn: Function): Socket; get(key: string, fn: Function): Socket; has(key: string, fn: Function): Socket;