<FMLiveSwitchIWebSocket> Protocol Reference

Contract for an 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...
 
(bool) - isOpen
 Gets a value indicating whether the WebSocket is connected. More...
 
(void) - openWithOpenArgs:
 Opens the WebSocket connection. More...
 
(bool) - secure
 Gets a value indicating whether the WebSocket is secure. More...
 
(void) - sendWithSendArgs:
 Sends a message to the WebSocket server. More...
 

Detailed Description

Contract for an implementation of the WebSocket protocol v8.

Method Documentation

◆ bufferedAmount

- (int) bufferedAmount

Gets the number of bytes buffered in the send queue.

Reimplemented in FMLiveSwitchWebSocket.

◆ close

- (void) close

Closes the WebSocket connection.

Reimplemented in FMLiveSwitchWebSocket.

◆ closeWithCloseArgs:

- (void) closeWithCloseArgs: (FMLiveSwitchWebSocketCloseArgs *)  closeArgs

Closes the WebSocket connection.

Parameters
closeArgsThe close arguments

Reimplemented in FMLiveSwitchWebSocket.

◆ isOpen

- (bool) isOpen

Gets a value indicating whether the WebSocket is connected.

Reimplemented in FMLiveSwitchWebSocket.

◆ openWithOpenArgs:

- (void) openWithOpenArgs: (FMLiveSwitchWebSocketOpenArgs *)  openArgs

Opens the WebSocket connection.

Parameters
openArgsThe open arguments.

Reimplemented in FMLiveSwitchWebSocket.

◆ secure

- (bool) secure

Gets a value indicating whether the WebSocket is secure.

Reimplemented in FMLiveSwitchWebSocket.

◆ sendWithSendArgs:

- (void) sendWithSendArgs: (FMLiveSwitchWebSocketSendArgs *)  sendArgs

Sends a message to the WebSocket server.

Parameters
sendArgsThe send arguments.

Reimplemented in FMLiveSwitchWebSocket.