Implementation of the WebSocket protocol v8. More...
Instance Methods | |
(int) | - bufferedAmount |
Gets the number of bytes buffered in the send queue. More... | |
(void) | - close |
Closes the WebSocket connection. More... | |
(void) | - closeWithCloseArgs: |
Closes the WebSocket connection. More... | |
(instancetype) | - initWithRequestUrl: |
Creates a new FMLiveSwitchWebSocket. More... | |
(instancetype) | - initWithRequestUrl:protocol: |
Creates a new FMLiveSwitchWebSocket. More... | |
(bool) | - isOpen |
Gets a value indicating whether the WebSocket is connected. More... | |
(int) | - lastRoundTripTime |
Gets the last round trip time measured. More... | |
(void) | - openWithOpenArgs: |
Opens the WebSocket connection. More... | |
(NSString *) | - protocol |
Gets the WebSocket protocol. More... | |
(bool) | - secure |
Gets a value indicating whether the WebSocket is secure. More... | |
(void) | - sendWithSendArgs: |
Sends a message to the WebSocket server. More... | |
Instance Methods inherited from FMLiveSwitchWebSocketBase | |
(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 | |
(bool) | + exists |
Gets a value indicating whether WebSocket support exists on this platform. More... | |
(FMLiveSwitchWebSocket *) | + webSocketWithRequestUrl: |
Creates a new FMLiveSwitchWebSocket. More... | |
(FMLiveSwitchWebSocket *) | + webSocketWithRequestUrl:protocol: |
Creates a new FMLiveSwitchWebSocket. More... | |
Class Methods inherited from FMLiveSwitchWebSocketBase | |
(FMLiveSwitchWebSocketBase *) | + webSocketBase |
Implementation of the WebSocket protocol v8.
- (int) bufferedAmount |
Gets the number of bytes buffered in the send queue.
Reimplemented from <FMLiveSwitchIWebSocket>.
- (void) close |
Closes the WebSocket connection.
Reimplemented from <FMLiveSwitchIWebSocket>.
- (void) closeWithCloseArgs: | (FMLiveSwitchWebSocketCloseArgs *) | closeArgs |
Closes the WebSocket connection.
closeArgs | The close arguments |
Reimplemented from <FMLiveSwitchIWebSocket>.
+ (bool) exists |
Gets a value indicating whether WebSocket support exists on this platform.
- (instancetype) initWithRequestUrl: | (NSString *) | requestUrl |
Creates a new FMLiveSwitchWebSocket.
requestUrl | The target URL for the WebSocket connection. |
- (instancetype) initWithRequestUrl: | (NSString *) | requestUrl | |
protocol: | (NSString *) | protocol | |
Creates a new FMLiveSwitchWebSocket.
requestUrl | The target URL for the WebSocket connection. |
protocol | The WebSocket protocol. |
- (bool) isOpen |
Gets a value indicating whether the WebSocket is connected.
Reimplemented from <FMLiveSwitchIWebSocket>.
- (int) lastRoundTripTime |
Gets the last round trip time measured.
- (void) openWithOpenArgs: | (FMLiveSwitchWebSocketOpenArgs *) | openArgs |
Opens the WebSocket connection.
openArgs | The open arguments. |
Reimplemented from <FMLiveSwitchIWebSocket>.
- (NSString*) protocol |
Gets the WebSocket protocol.
- (bool) secure |
Gets a value indicating whether the WebSocket is secure.
Reimplemented from <FMLiveSwitchIWebSocket>.
- (void) sendWithSendArgs: | (FMLiveSwitchWebSocketSendArgs *) | sendArgs |
Sends a message to the WebSocket server.
sendArgs | The send arguments. |
Reimplemented from <FMLiveSwitchIWebSocket>.
+ (FMLiveSwitchWebSocket*) webSocketWithRequestUrl: | (NSString *) | requestUrl |
Creates a new FMLiveSwitchWebSocket.
requestUrl | The target URL for the WebSocket connection. |
+ (FMLiveSwitchWebSocket*) webSocketWithRequestUrl: | (NSString *) | requestUrl | |
protocol: | (NSString *) | protocol | |
Creates a new FMLiveSwitchWebSocket.
requestUrl | The target URL for the WebSocket connection. |
protocol | The WebSocket protocol. |