WebSocket base properties/methods. More...
Instance Methods | |
(instancetype) | - init |
(void) | - raiseCloseCompleteWithCloseArgs:statusCode:reason: |
Raises the close complete callback. 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... | |
Class Methods | |
(FMLiveSwitchWebSocketBase *) | + webSocketBase |
WebSocket base properties/methods.
- (instancetype) init |
- (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) 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. |
+ (FMLiveSwitchWebSocketBase*) webSocketBase |