Developer Documentation
Our new developer documentation is now available. Please check it out!

Room.Join

Warning

Version 1.1.0 is deprecated and will be removed in the future and is not being supported for new users. Please update to the latest version as soon as possible.

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

NameTypeDescription
nameStringroom name
userIdStringuser id
userDataIUserDatacustom userdata
tokenStringroom token

Returns

TypeDescription
Booleantrue 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

NameTypeDescription
nameStringroom name
userIdStringuser id
userDataIUserDatacustom userdata

Returns

TypeDescription
Booleantrue 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

NameTypeDescription
tokenStringroom token

Returns

TypeDescription
Booleantrue on successful join or false