Our new developer documentation is now available. Please check it out!
Room.Join
public bool Join(string name, string userId, IUserData userData = null)
public bool Join(string token)
Join the room via Odin gateway
Info
Generates a room token and update UserData before join
Parameters
Name | Type | Description |
---|---|---|
name | String | room name |
userId | String | user id |
userData | IUserData | custom userdata |
token | String | room token |
Returns
Type | Description |
---|---|
Boolean | true on successful join or false |
Variants
Join(name, userId, userData)
public bool Join(string name, string userId, IUserData userData = null)
Join the room via Odin gateway
Warning
Generates a room token and update UserData before join
Parameters
Name | Type | Description |
---|---|---|
name | String | room name |
userId | String | user id |
userData | IUserData | custom userdata |
Returns
Type | Description |
---|---|
Boolean | true on successful join or false |
Join(token)
public bool Join(string token)
Join the room via Odin gateway
Warning
The room token should be generated SERVER SIDE by String%40%2cSystem
Parameters
Name | Type | Description |
---|---|---|
token | String | room token |
Returns
Type | Description |
---|---|
Boolean | true on successful join or false |