iOS SDK API Reference
|
Room base class. More...
#import <SKWRoom.h>
Instance Methods | |
(BOOL) | - send: |
Send data to all participants in the room with WebSocket. More... | |
(void) | - on:callback: |
Set blocks for SKWRoom events. More... | |
(void) | - offAll |
Cancels the set event callback block of SKWRoom. More... | |
(void) | - getLog |
Start getting room's logs from signaling server. More... | |
Properties | |
NSString *__nullable | name |
Room name. | |
Room base class.
- (void) getLog |
Start getting room's logs from signaling server.
The result is returned in the SKW_ROOM_EVENT_LOG event.
- (void) on: | (SKWRoomEventEnum) | event | |
callback: | (SKWRoomEventCallback __nullable) | callback | |
Set blocks for SKWRoom events.
event | Event type |
callback | Callback block literal |
- (BOOL) send: | (NSObject *__nonnull) | data |
Send data to all participants in the room with WebSocket.
It emits broadcast event. The max size of data that can be sent is 20MB. The frequent of consecutive send is limited to once every 100 msec. Outgoing data that exceeds the sending frequency limit is queued and sent sequentially every 100 msec.
data | Send data |