A LiveSwitch client. More...
Instance Methods | |
| (void) | - addOnApplicationMessage: |
| Adds a handler that is raised when an application-scope message is received from the server. More... | |
| (FMLiveSwitchClientInfo *, NSString *) | - addOnApplicationMessageWithBlock |
| Adds a handler that is raised when an application-scope message is received from the server. More... | |
| (void) | - addOnApplicationMessageWithBlock: |
| Adds a handler that is raised when an application-scope message is received from the server. More... | |
| (void) | - addOnDeviceMessage: |
| Adds a handler that is raised when a device-scope message is received from the server. More... | |
| (FMLiveSwitchClientInfo *, NSString *) | - addOnDeviceMessageWithBlock |
| Adds a handler that is raised when a device-scope message is received from the server. More... | |
| (void) | - addOnDeviceMessageWithBlock: |
| Adds a handler that is raised when a device-scope message is received from the server. More... | |
| (void) | - addOnHttpRequestCreated: |
| Adds a handler that is raised whenever an underlying HTTP request has been created and is about to be transferred to the server. More... | |
| (FMLiveSwitchHttpRequestCreatedArgs *) | - addOnHttpRequestCreatedWithBlock |
| Adds a handler that is raised whenever an underlying HTTP request has been created and is about to be transferred to the server. More... | |
| (void) | - addOnHttpRequestCreatedWithBlock: |
| Adds a handler that is raised whenever an underlying HTTP request has been created and is about to be transferred to the server. More... | |
| (void) | - addOnHttpResponseReceived: |
| Adds a handler that is raised whenever an underlying HTTP response has been received and is about to be processed by the client. More... | |
| (FMLiveSwitchHttpResponseReceivedArgs *) | - addOnHttpResponseReceivedWithBlock |
| Adds a handler that is raised whenever an underlying HTTP response has been received and is about to be processed by the client. More... | |
| (void) | - addOnHttpResponseReceivedWithBlock: |
| Adds a handler that is raised whenever an underlying HTTP response has been received and is about to be processed by the client. More... | |
| (void) | - addOnMessage: |
| Adds a handler that is raised when a client-scope message is received from the server. More... | |
| (FMLiveSwitchClientInfo *, NSString *) | - addOnMessageWithBlock |
| Adds a handler that is raised when a client-scope message is received from the server. More... | |
| (void) | - addOnMessageWithBlock: |
| Adds a handler that is raised when a client-scope message is received from the server. More... | |
| (void) | - addOnRemoteUpdate: |
| Adds a handler that is raised when the the client's config on the server has changed. More... | |
| (FMLiveSwitchClientInfo *, FMLiveSwitchClientInfo *) | - addOnRemoteUpdateWithBlock |
| Adds a handler that is raised when the the client's config on the server has changed. More... | |
| (void) | - addOnRemoteUpdateWithBlock: |
| Adds a handler that is raised when the the client's config on the server has changed. More... | |
| (void) | - addOnStateChange: |
| Adds a handler that is raised when the state changes. More... | |
| (FMLiveSwitchClient *) | - 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... | |
| (void) | - addOnStreamChange: |
| Adds a handler that is raised whenever a client disconnects or reconnects to the internet. More... | |
| (void) | - addOnStreamChanged: |
| Adds a handler that is raised after a client disconnects or reconnects to the internet. More... | |
| (FMLiveSwitchNetworkConnectionState) | - addOnStreamChangedWithBlock |
| Adds a handler that is raised after a client disconnects or reconnects to the internet. More... | |
| (void) | - addOnStreamChangedWithBlock: |
| Adds a handler that is raised after a client disconnects or reconnects to the internet. More... | |
| (FMLiveSwitchNetworkConnectionState) | - addOnStreamChangeWithBlock |
| Adds a handler that is raised whenever a client disconnects or reconnects to the internet. More... | |
| (void) | - addOnStreamChangeWithBlock: |
| Adds a handler that is raised whenever a client disconnects or reconnects to the internet. More... | |
| (void) | - addOnUserMessage: |
| Adds a handler that is raised when a user-scope message is received from the server. More... | |
| (FMLiveSwitchClientInfo *, NSString *) | - addOnUserMessageWithBlock |
| Adds a handler that is raised when a user-scope message is received from the server. More... | |
| (void) | - addOnUserMessageWithBlock: |
| Adds a handler that is raised when a user-scope message is received from the server. More... | |
| (NSString *) | - applicationId |
| Gets the application identifier. More... | |
| (NSMutableArray *) | - channels |
| Gets an array of joined channels. More... | |
| (FMLiveSwitchFuture< id > *) | - closeAll |
| Closes all active connections in all channels. More... | |
| (FMLiveSwitchClientConfig *) | - config |
| Gets the current configuration. More... | |
| (NSString *) | - deviceAlias |
| Gets the device alias. More... | |
| (NSString *) | - deviceId |
| Gets the device identifier. More... | |
| (bool) | - disableWebSockets |
| Gets whether to disable WebSocket protocol support and use long-polling, even if the server is capable of accepting WebSocket requests. More... | |
| (NSString *) | - externalId |
| Gets the external client identifier. More... | |
| (NSString *) | - gatewayUrl |
| Gets the gateway URL. More... | |
| (NSString *) | - gatewayVersion |
| Gets the version of the Gateway Server. More... | |
| (NSString *) | - id |
| Gets the client identifier. More... | |
| (FMLiveSwitchClientInfo *) | - info |
| Gets the client info. More... | |
| (instancetype) | - initWithGatewayUrl:applicationId: |
| Initializes a new instance of the FMLiveSwitchClient class. More... | |
| (instancetype) | - initWithGatewayUrl:applicationId:userId: |
| Initializes a new instance of the FMLiveSwitchClient class. More... | |
| (instancetype) | - initWithGatewayUrl:applicationId:userId:deviceId: |
| Initializes a new instance of the FMLiveSwitchClient class. More... | |
| (instancetype) | - initWithGatewayUrl:applicationId:userId:deviceId:clientId: |
| Initializes a new instance of the FMLiveSwitchClient class. More... | |
| (instancetype) | - initWithGatewayUrl:applicationId:userId:deviceId:clientId:roles: |
| Initializes a new instance of the FMLiveSwitchClient class. More... | |
| (instancetype) | - initWithGatewayUrl:applicationId:userId:deviceId:clientId:roles:region: |
| Initializes a new instance of the FMLiveSwitchClient class. More... | |
| (FMLiveSwitchFuture< FMLiveSwitchChannel * > *) | - joinWithChannelId:token: |
| Joins a channel. More... | |
| (FMLiveSwitchFuture< FMLiveSwitchChannel * > *) | - joinWithToken: |
| Joins a channel. More... | |
| (FMLiveSwitchFuture< FMLiveSwitchChannel * > *) | - leaveWithChannelId: |
| Leaves a channel. More... | |
| (long long) | - messageBytesReceived |
| Gets the number of message bytes received. More... | |
| (long long) | - messageBytesSent |
| Gets the number of message bytes sent. More... | |
| (long long) | - messagesReceived |
| Gets the number of messages received. More... | |
| (long long) | - messagesSent |
| Gets the number of messages sent. More... | |
| (NSString *) | - region |
| Gets the region. More... | |
| (FMLiveSwitchFuture< NSMutableArray * > *) | - registerWithToken: |
| Registers with the signalling server. More... | |
| (void) | - removeOnApplicationMessage: |
| Removes a handler that is raised when an application-scope message is received from the server. More... | |
| (void) | - removeOnDeviceMessage: |
| Removes a handler that is raised when a device-scope message is received from the server. More... | |
| (void) | - removeOnHttpRequestCreated: |
| Removes a handler that is raised whenever an underlying HTTP request has been created and is about to be transferred to the server. More... | |
| (void) | - removeOnHttpResponseReceived: |
| Removes a handler that is raised whenever an underlying HTTP response has been received and is about to be processed by the client. More... | |
| (void) | - removeOnMessage: |
| Removes a handler that is raised when a client-scope message is received from the server. More... | |
| (void) | - removeOnRemoteUpdate: |
| Removes a handler that is raised when the the client's config on the server has changed. More... | |
| (void) | - removeOnStateChange: |
| Removes a handler that is raised when the state changes. More... | |
| (void) | - removeOnStreamChange: |
| Removes a handler that is raised whenever a client disconnects or reconnects to the internet. More... | |
| (void) | - removeOnStreamChanged: |
| Removes a handler that is raised after a client disconnects or reconnects to the internet. More... | |
| (void) | - removeOnUserMessage: |
| Removes a handler that is raised when a user-scope message is received from the server. More... | |
| (int) | - requestMaxRetries |
| Gets the maximum number of retries allowed for a standard request. More... | |
| (int) | - requestTimeout |
| Gets the number of milliseconds to wait for a standard request to return a response before it is aborted and another request is attempted. More... | |
| (NSMutableArray *) | - roles |
| Gets the roles. More... | |
| (FMLiveSwitchFuture< id > *) | - sendMessage: |
| Sends a message to the server with no delivery. More... | |
| (void) | - setDeviceAlias: |
| Sets the device alias. More... | |
| (void) | - setDisableWebSockets: |
| Sets whether to disable WebSocket protocol support and use long-polling, even if the server is capable of accepting WebSocket requests. More... | |
| (void) | - setExternalId: |
| Sets the external client identifier. More... | |
| (void) | - setRequestMaxRetries: |
| Sets the maximum number of retries allowed for a standard request. More... | |
| (void) | - setRequestTimeout: |
| Sets the number of milliseconds to wait for a standard request to return a response before it is aborted and another request is attempted. More... | |
| (void) | - setTag: |
| Sets the tag. More... | |
| (void) | - setUserAlias: |
| Sets the user alias. More... | |
| (FMLiveSwitchClientState) | - state |
| Gets the state. More... | |
| (NSString *) | - tag |
| Gets the tag. More... | |
| (FMLiveSwitchFuture< id > *) | - unregister |
| Unregisters with the signalling server. More... | |
| (NSException *) | - unregisterException |
| Gets the unregister exception, which is set if registration is reset abnormally. More... | |
| (FMLiveSwitchFuture< id > *) | - updateWithClientConfig: |
| Updates this client. More... | |
| (NSString *) | - userAlias |
| Gets the user alias. More... | |
| (NSString *) | - userId |
| Gets the user identifier. More... | |
Instance Methods inherited from FMLiveSwitchDynamic | |
| (NSMutableDictionary< NSString *, id > *) | - dynamicProperties |
| Gets all dynamic properties on this instance. More... | |
| (id) | - getDynamicValueWithKey: |
| Gets a property value from the local cache. More... | |
| (instancetype) | - init |
| Initializes a new instance of the FMLiveSwitchSerializable class. More... | |
| (void) | - setDynamicValueWithKey:value: |
| Sets a property value in the local cache. More... | |
| (bool) | - unsetDynamicValueWithKey: |
| Removes a property value from the local cache. More... | |
A LiveSwitch client.
| - (void) addOnApplicationMessage: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, NSString * > *) | value |
Adds a handler that is raised when an application-scope message is received from the server.
Parameters:
| - (FMLiveSwitchClientInfo*, NSString*) addOnApplicationMessageWithBlock |
Adds a handler that is raised when an application-scope message is received from the server.
Parameters:
| - (void) addOnApplicationMessageWithBlock: | (void(^)(FMLiveSwitchClientInfo *, NSString *)) | valueBlock |
Adds a handler that is raised when an application-scope message is received from the server.
Parameters:
| - (void) addOnDeviceMessage: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, NSString * > *) | value |
Adds a handler that is raised when a device-scope message is received from the server.
Parameters:
| - (FMLiveSwitchClientInfo*, NSString*) addOnDeviceMessageWithBlock |
Adds a handler that is raised when a device-scope message is received from the server.
Parameters:
| - (void) addOnDeviceMessageWithBlock: | (void(^)(FMLiveSwitchClientInfo *, NSString *)) | valueBlock |
Adds a handler that is raised when a device-scope message is received from the server.
Parameters:
| - (void) addOnHttpRequestCreated: | (FMLiveSwitchAction1< FMLiveSwitchHttpRequestCreatedArgs * > *) | value |
Adds a handler that is raised whenever an underlying HTTP request has been created and is about to be transferred to the server.
This is a good place to add headers/cookies. For WebSocket streams, this will fire only once for the initial HTTP-based handshake.
| - (FMLiveSwitchHttpRequestCreatedArgs*) addOnHttpRequestCreatedWithBlock |
Adds a handler that is raised whenever an underlying HTTP request has been created and is about to be transferred to the server.
This is a good place to add headers/cookies. For WebSocket streams, this will fire only once for the initial HTTP-based handshake.
| - (void) addOnHttpRequestCreatedWithBlock: | (void(^)(FMLiveSwitchHttpRequestCreatedArgs *)) | valueBlock |
Adds a handler that is raised whenever an underlying HTTP request has been created and is about to be transferred to the server.
This is a good place to add headers/cookies. For WebSocket streams, this will fire only once for the initial HTTP-based handshake.
| - (void) addOnHttpResponseReceived: | (FMLiveSwitchAction1< FMLiveSwitchHttpResponseReceivedArgs * > *) | value |
Adds a handler that is raised whenever an underlying HTTP response has been received and is about to be processed by the client.
This is a good place to read headers/cookies. For WebSocket streams, this will fire only once for the initial HTTP-based handshake.
| - (FMLiveSwitchHttpResponseReceivedArgs*) addOnHttpResponseReceivedWithBlock |
Adds a handler that is raised whenever an underlying HTTP response has been received and is about to be processed by the client.
This is a good place to read headers/cookies. For WebSocket streams, this will fire only once for the initial HTTP-based handshake.
| - (void) addOnHttpResponseReceivedWithBlock: | (void(^)(FMLiveSwitchHttpResponseReceivedArgs *)) | valueBlock |
Adds a handler that is raised whenever an underlying HTTP response has been received and is about to be processed by the client.
This is a good place to read headers/cookies. For WebSocket streams, this will fire only once for the initial HTTP-based handshake.
| - (void) addOnMessage: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, NSString * > *) | value |
Adds a handler that is raised when a client-scope message is received from the server.
Parameters:
| - (FMLiveSwitchClientInfo*, NSString*) addOnMessageWithBlock |
Adds a handler that is raised when a client-scope message is received from the server.
Parameters:
| - (void) addOnMessageWithBlock: | (void(^)(FMLiveSwitchClientInfo *, NSString *)) | valueBlock |
Adds a handler that is raised when a client-scope message is received from the server.
Parameters:
| - (void) addOnRemoteUpdate: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, FMLiveSwitchClientInfo * > *) | value |
Adds a handler that is raised when the the client's config on the server has changed.
| - (FMLiveSwitchClientInfo*, FMLiveSwitchClientInfo*) addOnRemoteUpdateWithBlock |
Adds a handler that is raised when the the client's config on the server has changed.
| - (void) addOnRemoteUpdateWithBlock: | (void(^)(FMLiveSwitchClientInfo *, FMLiveSwitchClientInfo *)) | valueBlock |
Adds a handler that is raised when the the client's config on the server has changed.
| - (void) addOnStateChange: | (FMLiveSwitchAction1< FMLiveSwitchClient * > *) | value |
Adds a handler that is raised when the state changes.
| - (FMLiveSwitchClient*) addOnStateChangeWithBlock |
Adds a handler that is raised when the state changes.
| - (void) addOnStateChangeWithBlock: | (void(^)(FMLiveSwitchClient *)) | valueBlock |
Adds a handler that is raised when the state changes.
| - (void) addOnStreamChange: | (FMLiveSwitchAction1< id > *) | value |
Adds a handler that is raised whenever a client disconnects or reconnects to the internet.
| - (void) addOnStreamChanged: | (FMLiveSwitchAction1< id > *) | value |
Adds a handler that is raised after a client disconnects or reconnects to the internet.
| - (FMLiveSwitchNetworkConnectionState) addOnStreamChangedWithBlock |
Adds a handler that is raised after a client disconnects or reconnects to the internet.
| - (void) addOnStreamChangedWithBlock: | (void(^)(FMLiveSwitchNetworkConnectionState)) | valueBlock |
Adds a handler that is raised after a client disconnects or reconnects to the internet.
| - (FMLiveSwitchNetworkConnectionState) addOnStreamChangeWithBlock |
Adds a handler that is raised whenever a client disconnects or reconnects to the internet.
| - (void) addOnStreamChangeWithBlock: | (void(^)(FMLiveSwitchNetworkConnectionState)) | valueBlock |
Adds a handler that is raised whenever a client disconnects or reconnects to the internet.
| - (void) addOnUserMessage: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, NSString * > *) | value |
Adds a handler that is raised when a user-scope message is received from the server.
Parameters:
| - (FMLiveSwitchClientInfo*, NSString*) addOnUserMessageWithBlock |
Adds a handler that is raised when a user-scope message is received from the server.
Parameters:
| - (void) addOnUserMessageWithBlock: | (void(^)(FMLiveSwitchClientInfo *, NSString *)) | valueBlock |
Adds a handler that is raised when a user-scope message is received from the server.
Parameters:
| - (NSString*) applicationId |
Gets the application identifier.
| - (NSMutableArray*) channels |
Gets an array of joined channels.
| + (FMLiveSwitchClient*) clientWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| + (FMLiveSwitchClient*) clientWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| + (FMLiveSwitchClient*) clientWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| deviceId | The device identifier, or null to auto-generate. |
| + (FMLiveSwitchClient*) clientWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| deviceId | The device identifier, or null to auto-generate. |
| clientId | The client identifier, or null to auto-generate. |
| + (FMLiveSwitchClient*) clientWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| roles: | (NSMutableArray *) | roles | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| deviceId | The device identifier, or null to auto-generate. |
| clientId | The client identifier, or null to auto-generate. |
| roles | The roles, if any. |
| + (FMLiveSwitchClient*) clientWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| roles: | (NSMutableArray *) | roles | |
| region: | (NSString *) | region | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| deviceId | The device identifier, or null to auto-generate. |
| clientId | The client identifier, or null to auto-generate. |
| roles | The roles, if any. |
| region | The region, if any. |
| - (FMLiveSwitchFuture<id>*) closeAll |
Closes all active connections in all channels.
| - (FMLiveSwitchClientConfig*) config |
Gets the current configuration.
| - (NSString*) deviceAlias |
Gets the device alias.
Cannot be set after registration, use the 'Update' method instead.
| - (NSString*) deviceId |
Gets the device identifier.
| - (bool) disableWebSockets |
Gets whether to disable WebSocket protocol support and use long-polling, even if the server is capable of accepting WebSocket requests.
| - (NSString*) externalId |
Gets the external client identifier.
| - (NSString*) gatewayUrl |
Gets the gateway URL.
| - (NSString*) gatewayVersion |
Gets the version of the Gateway Server.
This value will not be available until after registration with the Gateway.
| - (FMLiveSwitchClientInfo*) info |
Gets the client info.
| - (instancetype) initWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| - (instancetype) initWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| - (instancetype) initWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| deviceId | The device identifier, or null to auto-generate. |
| - (instancetype) initWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| deviceId | The device identifier, or null to auto-generate. |
| clientId | The client identifier, or null to auto-generate. |
| - (instancetype) initWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| roles: | (NSMutableArray *) | roles | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| deviceId | The device identifier, or null to auto-generate. |
| clientId | The client identifier, or null to auto-generate. |
| roles | The roles, if any. |
| - (instancetype) initWithGatewayUrl: | (NSString *) | gatewayUrl | |
| applicationId: | (NSString *) | applicationId | |
| userId: | (NSString *) | userId | |
| deviceId: | (NSString *) | deviceId | |
| clientId: | (NSString *) | clientId | |
| roles: | (NSMutableArray *) | roles | |
| region: | (NSString *) | region | |
Initializes a new instance of the FMLiveSwitchClient class.
| gatewayUrl | The gateway URL. |
| applicationId | The application identifier. |
| userId | The user identifier, or null to auto-generate. |
| deviceId | The device identifier, or null to auto-generate. |
| clientId | The client identifier, or null to auto-generate. |
| roles | The roles, if any. |
| region | The region, if any. |
| - (FMLiveSwitchFuture<FMLiveSwitchChannel*>*) joinWithChannelId: | (NSString *) | channelId | |
| token: | (NSString *) | token | |
Joins a channel.
| channelId | The channel identifier. |
| token | The auth token. |
| - (FMLiveSwitchFuture<FMLiveSwitchChannel*>*) joinWithToken: | (NSString *) | token |
Joins a channel.
| token | The auth token. |
| - (FMLiveSwitchFuture<FMLiveSwitchChannel*>*) leaveWithChannelId: | (NSString *) | channelId |
Leaves a channel.
| channelId | The channel identifier. |
| - (long long) messageBytesReceived |
Gets the number of message bytes received.
| - (long long) messageBytesSent |
Gets the number of message bytes sent.
| - (long long) messagesReceived |
Gets the number of messages received.
| - (long long) messagesSent |
Gets the number of messages sent.
| - (NSString*) region |
Gets the region.
| - (FMLiveSwitchFuture<NSMutableArray*>*) registerWithToken: | (NSString *) | token |
Registers with the signalling server.
| token | The auth token. |
| - (void) removeOnApplicationMessage: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, NSString * > *) | value |
Removes a handler that is raised when an application-scope message is received from the server.
Parameters:
| - (void) removeOnDeviceMessage: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, NSString * > *) | value |
Removes a handler that is raised when a device-scope message is received from the server.
Parameters:
| - (void) removeOnHttpRequestCreated: | (FMLiveSwitchAction1< FMLiveSwitchHttpRequestCreatedArgs * > *) | value |
Removes a handler that is raised whenever an underlying HTTP request has been created and is about to be transferred to the server.
This is a good place to add headers/cookies. For WebSocket streams, this will fire only once for the initial HTTP-based handshake.
| - (void) removeOnHttpResponseReceived: | (FMLiveSwitchAction1< FMLiveSwitchHttpResponseReceivedArgs * > *) | value |
Removes a handler that is raised whenever an underlying HTTP response has been received and is about to be processed by the client.
This is a good place to read headers/cookies. For WebSocket streams, this will fire only once for the initial HTTP-based handshake.
| - (void) removeOnMessage: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, NSString * > *) | value |
Removes a handler that is raised when a client-scope message is received from the server.
Parameters:
| - (void) removeOnRemoteUpdate: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, FMLiveSwitchClientInfo * > *) | value |
Removes a handler that is raised when the the client's config on the server has changed.
| - (void) removeOnStateChange: | (FMLiveSwitchAction1< FMLiveSwitchClient * > *) | value |
Removes a handler that is raised when the state changes.
| - (void) removeOnStreamChange: | (FMLiveSwitchAction1< id > *) | value |
Removes a handler that is raised whenever a client disconnects or reconnects to the internet.
| - (void) removeOnStreamChanged: | (FMLiveSwitchAction1< id > *) | value |
Removes a handler that is raised after a client disconnects or reconnects to the internet.
| - (void) removeOnUserMessage: | (FMLiveSwitchAction2< FMLiveSwitchClientInfo *, NSString * > *) | value |
Removes a handler that is raised when a user-scope message is received from the server.
Parameters:
| - (int) requestMaxRetries |
Gets the maximum number of retries allowed for a standard request.
| - (int) requestTimeout |
Gets the number of milliseconds to wait for a standard request to return a response before it is aborted and another request is attempted.
Defaults to 15000 (15 seconds).
| - (NSMutableArray*) roles |
Gets the roles.
| - (FMLiveSwitchFuture<id>*) sendMessage: | (NSString *) | message |
Sends a message to the server with no delivery.
| message | The message to be sent. |
| - (void) setDeviceAlias: | (NSString *) | value |
Sets the device alias.
Cannot be set after registration, use the 'Update' method instead.
| - (void) setDisableWebSockets: | (bool) | value |
Sets whether to disable WebSocket protocol support and use long-polling, even if the server is capable of accepting WebSocket requests.
| - (void) setExternalId: | (NSString *) | value |
Sets the external client identifier.
| - (void) setRequestMaxRetries: | (int) | value |
Sets the maximum number of retries allowed for a standard request.
| - (void) setRequestTimeout: | (int) | value |
Sets the number of milliseconds to wait for a standard request to return a response before it is aborted and another request is attempted.
Defaults to 15000 (15 seconds).
| - (void) setTag: | (NSString *) | value |
Sets the tag.
Cannot be set after registration, use the 'Update' method instead.
| - (void) setUserAlias: | (NSString *) | value |
Sets the user alias.
Cannot be set after registration, use the 'Update' method instead.
| - (FMLiveSwitchClientState) state |
Gets the state.
| - (NSString*) tag |
Gets the tag.
Cannot be set after registration, use the 'Update' method instead.
| - (FMLiveSwitchFuture<id>*) unregister |
Unregisters with the signalling server.
| - (NSException*) unregisterException |
Gets the unregister exception, which is set if registration is reset abnormally.
| - (FMLiveSwitchFuture<id>*) updateWithClientConfig: | (FMLiveSwitchClientConfig *) | clientConfig |
Updates this client.
| clientConfig | The client configuration. |
| - (NSString*) userAlias |
Gets the user alias.
Cannot be set after registration, use the 'Update' method instead.
| - (NSString*) userId |
Gets the user identifier.