Data channel interface. More...
Instance Methods | |
| (void) | - addOnStateChange: |
| Adds a handler that is raised when the state changes. More... | |
| (id) | - addOnStateChangeWithBlock |
| Adds a handler that is raised when the state changes. More... | |
| (void) | - addOnStateChangeWithBlock: |
| Adds a handler that is raised when the state changes. More... | |
| (NSString *) | - id |
| Gets the data channel identifier. More... | |
| (FMLiveSwitchDataChannelInfo *) | - info |
| Gets the data channel info. More... | |
| (bool) | - isInternal |
| Gets a value indicating if this is an internal data channel. More... | |
| (NSString *) | - label |
| Gets the label. More... | |
| (FMLiveSwitchAction1 *) | - onReceive |
| Gets the callback to execute when a message is received. More... | |
| (bool) | - ordered |
| Gets a value indicating whether messages will be delivered in the order they are sent. More... | |
| (void) | - removeOnStateChange: |
| Removes a handler that is raised when the state changes. More... | |
| (FMLiveSwitchFuture *) | - sendDataBytes: |
| Sends a byte array. More... | |
| (FMLiveSwitchFuture *) | - sendDataString: |
| Sends a string. More... | |
| (void) | - setOnReceive: |
| Sets the callback to execute when a message is received. More... | |
| (FMLiveSwitchDataChannelReceiveArgs *) | - setOnReceiveBlock |
| Sets the callback to execute when a message is received. More... | |
| (void) | - setOnReceiveBlock: |
| Sets the callback to execute when a message is received. More... | |
| (FMLiveSwitchDataChannelState) | - state |
| Gets the state. More... | |
| (NSString *) | - subprotocol |
| Gets the subprotocol. More... | |
Data channel interface.
| - (void) addOnStateChange: | (FMLiveSwitchAction1 *) | value |
Adds a handler that is raised when the state changes.
| - (id) addOnStateChangeWithBlock |
Adds a handler that is raised when the state changes.
| - (void) addOnStateChangeWithBlock: | (void(^)(id)) | valueBlock |
Adds a handler that is raised when the state changes.
| - (FMLiveSwitchDataChannelInfo*) info |
Gets the data channel info.
| - (bool) isInternal |
Gets a value indicating if this is an internal data channel.
| - (NSString*) label |
Gets the label.
| - (FMLiveSwitchAction1*) onReceive |
Gets the callback to execute when a message is received.
| - (bool) ordered |
Gets a value indicating whether messages will be delivered in the order they are sent.
| - (void) removeOnStateChange: | (FMLiveSwitchAction1 *) | value |
Removes a handler that is raised when the state changes.
| - (FMLiveSwitchFuture*) sendDataBytes: | (FMLiveSwitchDataBuffer *) | dataBytes |
Sends a byte array.
| - (FMLiveSwitchFuture*) sendDataString: | (NSString *) | dataString |
Sends a string.
| - (void) setOnReceive: | (FMLiveSwitchAction1 *) | value |
Sets the callback to execute when a message is received.
| - (FMLiveSwitchDataChannelReceiveArgs*) setOnReceiveBlock |
Sets the callback to execute when a message is received.
| - (void) setOnReceiveBlock: | (void(^)(FMLiveSwitchDataChannelReceiveArgs *)) | valueBlock |
Sets the callback to execute when a message is received.
| - (FMLiveSwitchDataChannelState) state |
Gets the state.
| - (NSString*) subprotocol |
Gets the subprotocol.