Merge pull request #2218 from futbalguy/master

Clarified documentation of Socket.in
This commit is contained in:
Naoyuki Kanezawa
2015-11-23 17:37:07 +09:00

View File

@@ -362,7 +362,6 @@ server.listen(3000);
[socket.io-adapter](https://github.com/socketio/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