From d5b3bb46f8272f42df8979dc9f9d9e0d861cf48f Mon Sep 17 00:00:00 2001 From: futbalguy Date: Sun, 23 Aug 2015 10:12:23 -0700 Subject: [PATCH] Clarified documentation of Socket.in --- Readme.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Readme.md b/Readme.md index dabdd68e..8d65794a 100644 --- a/Readme.md +++ b/Readme.md @@ -362,7 +362,6 @@ server.listen(3000); [socket.io-adapter](https://github.com/Automattic/socket.io-adapter). ### Socket#to(room:String):Socket -### Socket#in(room:String):Socket Sets a modifier for a subsequent event emission that the event will only be _broadcasted_ to sockets that have joined the given `room`. @@ -376,6 +375,10 @@ server.listen(3000); }); ``` +### Socket#in(room:String):Socket + + Same as `Socket#to` + ### Socket#compress(v:Boolean):Socket Sets a modifier for a subsequent event emission that the event data will