Developer Documentation

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

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