Implementation of the WebSocket protocol v8. More...
Public Member Functions | |
| void | close () |
| Closes the WebSocket connection. More... | |
| void | close (fm.liveswitch.WebSocketCloseArgs closeArgs) |
| Closes the WebSocket connection. More... | |
| int | getBufferedAmount () |
| Gets the number of bytes buffered in the send queue. More... | |
| boolean | getIsOpen () |
| Gets a value indicating whether the WebSocket is connected. More... | |
| String | getProtocol () |
| Gets the WebSocket protocol. More... | |
| boolean | getSecure () |
| Gets a value indicating whether the WebSocket is secure. More... | |
| void | open (fm.liveswitch.WebSocketOpenArgs openArgs) |
| Opens the WebSocket connection. More... | |
| void | send (fm.liveswitch.WebSocketSendArgs sendArgs) |
| Sends a message to the WebSocket server. More... | |
| WebSocket (String requestUrl) | |
| Creates a new fm.liveswitch.WebSocket. More... | |
| WebSocket (String requestUrl, String protocol) | |
| Creates a new fm.liveswitch.WebSocket. More... | |
Public Member Functions inherited from fm.liveswitch.WebSocketBase | |
| void | addOnLatestRoundTripTime (fm.liveswitch.IAction1< Integer > value) |
| Adds a handler that is raised when the latest round trip time is calculated. More... | |
| int | getLastRoundTripTime () |
| Gets the last round trip time. More... | |
| void | removeOnLatestRoundTripTime (fm.liveswitch.IAction1< Integer > value) |
| Removes a handler that is raised when the latest round trip time is calculated. More... | |
| WebSocketBase () | |
Public Member Functions inherited from fm.liveswitch.IWebSocket | |
| abstract void | addOnLatestRoundTripTime (fm.liveswitch.IAction1< Integer > value) |
| Adds a handler that is raised when the latest round trip time is calculated. More... | |
| abstract int | getLastRoundTripTime () |
| Gets the last round trip time. More... | |
| abstract void | removeOnLatestRoundTripTime (fm.liveswitch.IAction1< Integer > value) |
| Removes a handler that is raised when the latest round trip time is calculated. More... | |
Static Public Member Functions | |
| static boolean | getExists () |
| Gets a value indicating whether WebSocket support exists on this platform. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from fm.liveswitch.WebSocketBase | |
| void | raiseCloseComplete (fm.liveswitch.WebSocketCloseArgs closeArgs, fm.liveswitch.WebSocketStatusCode statusCode, String reason) |
| Raises the close complete callback. More... | |
| void | raiseOnLatestRoundTripTime (int value) |
| Raises the OnLatestRoundTripTime event. More... | |
| void | raiseOpenFailure (fm.liveswitch.WebSocketOpenArgs openArgs, fm.liveswitch.WebSocketStatusCode statusCode, java.lang.Exception exception) |
| Raises the open failure callback. More... | |
| void | raiseOpenSuccess (fm.liveswitch.WebSocketOpenArgs openArgs) |
| Raises the open success callback. More... | |
| void | raiseReceive (fm.liveswitch.WebSocketOpenArgs openArgs, String textMessage, byte[] binaryMessage) |
| Raises the receive callback. More... | |
| void | raiseStreamFailure (fm.liveswitch.WebSocketOpenArgs openArgs, fm.liveswitch.WebSocketStatusCode statusCode, java.lang.Exception exception) |
| Raises the stream failure callback. More... | |
| void | setLastRoundTripTime (int value) |
| Sets the last round trip time. More... | |
Implementation of the WebSocket protocol v8.
| fm.liveswitch.WebSocket.WebSocket | ( | String | requestUrl | ) |
Creates a new fm.liveswitch.WebSocket.
| requestUrl | The target URL for the WebSocket connection. |
| fm.liveswitch.WebSocket.WebSocket | ( | String | requestUrl, |
| String | protocol | ||
| ) |
Creates a new fm.liveswitch.WebSocket.
| void fm.liveswitch.WebSocket.close | ( | ) |
Closes the WebSocket connection.
Implements fm.liveswitch.IWebSocket.
| void fm.liveswitch.WebSocket.close | ( | fm.liveswitch.WebSocketCloseArgs | closeArgs | ) |
Closes the WebSocket connection.
| closeArgs | The close arguments |
Implements fm.liveswitch.IWebSocket.
| int fm.liveswitch.WebSocket.getBufferedAmount | ( | ) |
Gets the number of bytes buffered in the send queue.
Implements fm.liveswitch.IWebSocket.
|
static |
Gets a value indicating whether WebSocket support exists on this platform.
| boolean fm.liveswitch.WebSocket.getIsOpen | ( | ) |
Gets a value indicating whether the WebSocket is connected.
Implements fm.liveswitch.IWebSocket.
| String fm.liveswitch.WebSocket.getProtocol | ( | ) |
Gets the WebSocket protocol.
| boolean fm.liveswitch.WebSocket.getSecure | ( | ) |
Gets a value indicating whether the WebSocket is secure.
Implements fm.liveswitch.IWebSocket.
| void fm.liveswitch.WebSocket.open | ( | fm.liveswitch.WebSocketOpenArgs | openArgs | ) |
Opens the WebSocket connection.
| openArgs | The open arguments. |
Implements fm.liveswitch.IWebSocket.
| void fm.liveswitch.WebSocket.send | ( | fm.liveswitch.WebSocketSendArgs | sendArgs | ) |
Sends a message to the WebSocket server.
| sendArgs | The send arguments. |
Implements fm.liveswitch.IWebSocket.