Skip to content

Commit

Permalink
add extra link on rooms
Browse files Browse the repository at this point in the history
  • Loading branch information
getnamo authored May 23, 2020
1 parent afb432b commit a42cace
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -294,10 +294,12 @@ Since v1.2.3 you can now also join and leave a namespace explicitly using ```Joi
### Rooms
The Rooms functionality is solely based on server implementation, see Socket.IO api for details: https://socket.io/docs/rooms-and-namespaces/#Rooms
The Rooms functionality is solely based on server implementation, see Socket.IO api for details: https://socket.io/docs/rooms-and-namespaces/#Rooms.
Generally speaking you can have some kind of event to emit to your server specifying the unreal client wants to join or leave a room and then the server would handle that request for you. If you wanted to emit a message to a specific user in a room you'd need a way to get a list of possible users (e.g. get the list on joining the room or via a callback). Then selecting a user from the list and passing their id along with desired data in an emit call to the server which would forward the data to the user in the room you've joined.
See [this basic tutorial](https://www.tutorialspoint.com/socket.io/socket.io_rooms.htm) for implementing rooms on the server.
### Complex Connect
You can fill the optional _Query_ and _Headers_ parameters to pass in e.g. your own headers for authentication.
Expand Down

0 comments on commit a42cace

Please sign in to comment.