FMLiveSwitchWssServiceConnection Class Reference

Instance Methods

(void) - addOnMessageReceived:
 
(FMLiveSwitchWebSocketReceiveArgs *) - addOnMessageReceivedWithBlock
 
(void) - addOnMessageReceivedWithBlock:
 
(void) - addOnStreamingFailure:
 
(NSException *) - addOnStreamingFailureWithBlock
 
(void) - addOnStreamingFailureWithBlock:
 
(long long) - bytesReceived
 
(long long) - bytesSent
 
(NSString *) - id
 
(instancetype) - initWithWsUrl:accessToken:
 
(int) - lastRoundTripTime
 
(long long) - messagesReceived
 
(long long) - messagesSent
 
(FMLiveSwitchFuture< id > *) - openWithDelay:
 
(void) - removeOnMessageReceived:
 
(void) - removeOnStreamingFailure:
 
(void) - sendBinaryDataWithFrameBuffer:
 
(void) - sendStringWithMsg:
 

Class Methods

(FMLiveSwitchFuture< FMLiveSwitchWssServiceConnection * > *) + getInstanceWithApplicationId:userId:deviceId:clientId:openArgs:
 
(FMLiveSwitchWssServiceConnection *) + wssServiceConnectionWithWsUrl:accessToken:
 

Method Documentation

◆ addOnMessageReceived:

- (void) addOnMessageReceived: (FMLiveSwitchAction1< FMLiveSwitchWebSocketReceiveArgs * > *)  value

◆ addOnMessageReceivedWithBlock

- (FMLiveSwitchWebSocketReceiveArgs*) addOnMessageReceivedWithBlock

◆ addOnMessageReceivedWithBlock:

- (void) addOnMessageReceivedWithBlock: (void(^)(FMLiveSwitchWebSocketReceiveArgs *))  valueBlock

◆ addOnStreamingFailure:

- (void) addOnStreamingFailure: (FMLiveSwitchAction1< NSException * > *)  value

◆ addOnStreamingFailureWithBlock

- (NSException*) addOnStreamingFailureWithBlock

◆ addOnStreamingFailureWithBlock:

- (void) addOnStreamingFailureWithBlock: (void(^)(NSException *))  valueBlock

◆ bytesReceived

- (long long) bytesReceived

◆ bytesSent

- (long long) bytesSent

◆ getInstanceWithApplicationId:userId:deviceId:clientId:openArgs:

+ (FMLiveSwitchFuture<FMLiveSwitchWssServiceConnection*>*) getInstanceWithApplicationId: (NSString *)  applicationId
userId: (NSString *)  userId
deviceId: (NSString *)  deviceId
clientId: (NSString *)  clientId
openArgs: (FMLiveSwitchWssServiceOpenArgs *)  openArgs 

◆ id

- (NSString*) id

◆ initWithWsUrl:accessToken:

- (instancetype) initWithWsUrl: (NSString *)  wsUrl
accessToken: (NSString *)  accessToken 

◆ lastRoundTripTime

- (int) lastRoundTripTime

◆ messagesReceived

- (long long) messagesReceived

◆ messagesSent

- (long long) messagesSent

◆ openWithDelay:

- (FMLiveSwitchFuture<id>*) openWithDelay: (long long)  delay

◆ removeOnMessageReceived:

- (void) removeOnMessageReceived: (FMLiveSwitchAction1< FMLiveSwitchWebSocketReceiveArgs * > *)  value

◆ removeOnStreamingFailure:

- (void) removeOnStreamingFailure: (FMLiveSwitchAction1< NSException * > *)  value

◆ sendBinaryDataWithFrameBuffer:

- (void) sendBinaryDataWithFrameBuffer: (NSMutableData *)  frameBuffer

◆ sendStringWithMsg:

- (void) sendStringWithMsg: (NSString *)  msg

◆ wssServiceConnectionWithWsUrl:accessToken:

+ (FMLiveSwitchWssServiceConnection*) wssServiceConnectionWithWsUrl: (NSString *)  wsUrl
accessToken: (NSString *)  accessToken