From 55e13b94d20348a41106eb912113aa9de09e9ea1 Mon Sep 17 00:00:00 2001 From: Ezra Steinmetz Date: Sat, 18 Aug 2018 19:57:43 +0300 Subject: [PATCH] Join - added definition multiple rooms As said in the documentation you can send multiple room names as array to the join function https://socket.io/docs/server-api/#socket-join-rooms-callback --- types/socket.io/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/socket.io/index.d.ts b/types/socket.io/index.d.ts index 6c12e444b0..95a9ff1b4f 100644 --- a/types/socket.io/index.d.ts +++ b/types/socket.io/index.d.ts @@ -616,7 +616,7 @@ declare namespace SocketIO { * take an optional parameter, err, of a possible error * @return This Socket */ - join( name: string, fn?: ( err?: any ) => void ): Socket; + join( name: string|string[], fn?: ( err?: any ) => void ): Socket; /** * Leaves a room