Inherits from BaseRequest : NSObject
Declared in JoinRoomRequest.h
JoinRoomRequest.m

Overview

Join the current User in a Room.

Tasks

Class Methods

requestWithId:pass:roomIdToLeave:asSpect:

you can use the numeric ID of the Room or its name (you need to pass numeric id in a NSNumber object)

+ (id)requestWithId:(id)numericIdOrName pass:(NSString *)pass roomIdToLeave:(NSNumber *)roomIdToLeave asSpect:(BOOL)asSpect

Parameters

numericIdOrName

you can use the numeric ID of the Room or its name (you need to pass numeric id in a NSNumber object)

pass

needed only if the Room is password protected

roomIdToLeave

the id of a previously joined Room that you want to leave once joined in the new Room (optional). The default behavior is to leave the previous Room. You can pass a negative ID to avoid leaving any Room

asSpect

if true it indicates that you want to join the room as spectator (optional, for game Rooms only)

Declared In

JoinRoomRequest.h