Join Room

Joins an ODIN room with the room token provided. Every peer connected to the same room will be able to talk to each other and exchange data.
Inputs
Name | Type | Description |
---|---|---|
Exec | exec | |
Room | Room | Connect the Room instance created by the Construct a Room node. This room handle will later be used to handle events. |
Url | string | The url to the ODIN gateway. Typically this is https://gateway.odin.4players.io . |
Token | string | The token you created with the Generate Room Token node. |
UserData | Array of byte | User data can be anything and will be associated with the user on ODIN servers and will be sent to each other. This enables you to easily exchange data like name, data or mapping information. |
On Error | delegate | Delegate to handle errors while joining a room. Most of the time, an error will occur when the room token is invalid or the room is full. |
On Success | delegate | Called when the room has been successfully joined. |
Outputs
Name | Type | Description |
---|---|---|
Exec | exec | |
On Response | exec | Called when the gateway has returned its response. Use the success output to understand if anything went fine. |
Success | boolean | true if the room has been successfully joined. |
Discussion
Once you have joined the room, a sequence of events is created. You can learn more about these events here.
To handle these events create a Bind to ....
node and connect that to your Room
node created earlier in
Construct a Room
node.
Info
If you cannot find the Bind to ....
node (for example Bind to Room Joined Event
), you need to disable the context
filter in the blueprint node selection dialog.