Home ODIN Voice SDKs Unity 1.1.0 Classes OdinClient JoinRoom 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 async Task<Room> JoinRoom(string name, string userId)
public async Task<Room> JoinRoom(string name, string userId, Action<Room> setup = null)
public async Task<Room> JoinRoom(string name, string userId, IUserData userData, Action<Room> setup)
public async Task<Room> JoinRoom(string token, IUserData userData, Action<Room> setup)
Join or create a Room by name via a gateway
Parameters# Name Type Description name String Room name userId String User ID setup Action<Room> will invoke to setup a room before adding or joining userData IUserData Set new on room join token String Room token
Returns# Type Description Task<Room> or null
Variants# JoinRoom(name, userId)# public async Task<Room> JoinRoom(string name, string userId)
Join or create a Room by name via a gateway
Parameters# Name Type Description name String Room name userId String User ID
Returns# Type Description Task<Room> or null
JoinRoom(name, userId, setup)# public async Task<Room> JoinRoom(string name, string userId, Action<Room> setup = null)
Join or create a Room by name via a gateway
Parameters# Name Type Description name String Room name userId String Odin client ID setup Action<Room> will invoke to setup a room before adding or joining
Returns# Type Description Task<Room> or null
JoinRoom(name, userId, userData, setup)# public async Task<Room> JoinRoom(string name, string userId, IUserData userData, Action<Room> setup)
Join or create a Room by name via a gateway
Parameters# Name Type Description name String Room name userId String Odin client ID userData IUserData Set new on room join setup Action<Room> will invoke to setup a room before adding or joining
Returns# Type Description Task<Room> or null
JoinRoom(token, userData, setup)# public async Task<Room> JoinRoom(string token, IUserData userData, Action<Room> setup)
Join or create a Room by token via a gateway
Parameters# Name Type Description token String Room token userData IUserData Set new on room join setup Action<Room> will invoke to setup a room before adding or joining
Returns# Type Description Task<Room> or null