Room.Join

public bool Join(string name, string userId, UserData 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
userDataUserDatacustom userdata
tokenStringroom token

Returns

TypeDescription
Booleantrue on successful join or false

Variants

Join(name, userId, userData)

public bool Join(string name, string userId, UserData userData = null)

Join the room via Odin gateway

Warning

Generates a room token and update UserData before join

Parameters

NameTypeDescription
nameStringroom name
userIdStringuser id
userDataUserDatacustom 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%2cSystem

Parameters

NameTypeDescription
tokenStringroom token

Returns

TypeDescription
Booleantrue on successful join or false