WebSocket base properties/methods. More...
Instance Methods | |
(void) | - addOnLatestRoundTripTime: |
Adds a handler that is raised when the latest round trip time is calculated. More... | |
(int) | - addOnLatestRoundTripTimeWithBlock |
Adds a handler that is raised when the latest round trip time is calculated. More... | |
(void) | - addOnLatestRoundTripTimeWithBlock: |
Adds a handler that is raised when the latest round trip time is calculated. More... | |
(instancetype) | - init |
(int) | - lastRoundTripTime |
Gets the last round trip time. More... | |
(void) | - raiseCloseCompleteWithCloseArgs:statusCode:reason: |
Raises the close complete callback. More... | |
(void) | - raiseOnLatestRoundTripTime: |
Raises the OnLatestRoundTripTime event. More... | |
(void) | - raiseOpenFailureWithOpenArgs:statusCode:exception: |
Raises the open failure callback. More... | |
(void) | - raiseOpenSuccessWithOpenArgs: |
Raises the open success callback. More... | |
(void) | - raiseReceiveWithOpenArgs:textMessage:binaryMessage: |
Raises the receive callback. More... | |
(void) | - raiseStreamFailureWithOpenArgs:statusCode:exception: |
Raises the stream failure callback. More... | |
(void) | - removeOnLatestRoundTripTime: |
Removes a handler that is raised when the latest round trip time is calculated. More... | |
(void) | - setLastRoundTripTime: |
Sets the last round trip time. More... | |
Class Methods | |
(FMLiveSwitchWebSocketBase *) | + webSocketBase |
WebSocket base properties/methods.
- (void) addOnLatestRoundTripTime: | (FMLiveSwitchAction1< id > *) | value |
Adds a handler that is raised when the latest round trip time is calculated.
- (int) addOnLatestRoundTripTimeWithBlock |
Adds a handler that is raised when the latest round trip time is calculated.
- (void) addOnLatestRoundTripTimeWithBlock: | (void(^)(int)) | valueBlock |
Adds a handler that is raised when the latest round trip time is calculated.
- (instancetype) init |
- (int) lastRoundTripTime |
Gets the last round trip time.
- (void) raiseCloseCompleteWithCloseArgs: | (FMLiveSwitchWebSocketCloseArgs *) | closeArgs | |
statusCode: | (FMLiveSwitchWebSocketStatusCode) | statusCode | |
reason: | (NSString *) | reason | |
Raises the close complete callback.
closeArgs | The close arguments. |
statusCode | The status code. |
reason | The reason. |
- (void) raiseOnLatestRoundTripTime: | (int) | value |
Raises the OnLatestRoundTripTime event.
value |
- (void) raiseOpenFailureWithOpenArgs: | (FMLiveSwitchWebSocketOpenArgs *) | openArgs | |
statusCode: | (FMLiveSwitchWebSocketStatusCode) | statusCode | |
exception: | (NSException *) | exception | |
Raises the open failure callback.
openArgs | The open arguments. |
statusCode | The status code. |
exception | The exception. |
- (void) raiseOpenSuccessWithOpenArgs: | (FMLiveSwitchWebSocketOpenArgs *) | openArgs |
Raises the open success callback.
openArgs | The open arguments. |
- (void) raiseReceiveWithOpenArgs: | (FMLiveSwitchWebSocketOpenArgs *) | openArgs | |
textMessage: | (NSString *) | textMessage | |
binaryMessage: | (NSMutableData *) | binaryMessage | |
Raises the receive callback.
openArgs | The open arguments. |
textMessage | The text message. |
binaryMessage | The binary message. |
- (void) raiseStreamFailureWithOpenArgs: | (FMLiveSwitchWebSocketOpenArgs *) | openArgs | |
statusCode: | (FMLiveSwitchWebSocketStatusCode) | statusCode | |
exception: | (NSException *) | exception | |
Raises the stream failure callback.
openArgs | The open arguments. |
statusCode | The status code. |
exception | The exception. |
- (void) removeOnLatestRoundTripTime: | (FMLiveSwitchAction1< id > *) | value |
Removes a handler that is raised when the latest round trip time is calculated.
- (void) setLastRoundTripTime: | (int) | value |
Sets the last round trip time.
+ (FMLiveSwitchWebSocketBase*) webSocketBase |