Base Framework
|
#include <base/net/WebSocket.h>
Inherits Object.
Classes | |
class | Event |
Public Types | |
enum | ReadyState { CONNECTING = 0, OPEN = 1, CLOSING = 2, CLOSED = 3 } |
Public Member Functions | |
bool | isSupported () |
WebSocket () | |
ReadyState | getReadyState () |
bool | open (const String &url, const String &protocols=String()) |
void | send (const String &body=String()) |
void | close () |
WebSocket. See RFC6455.
WebSocket::WebSocket | ( | ) |
Initializes the request.
bool WebSocket::isSupported | ( | ) |
Returns true if WebSocket is supported.
Opens socket.
url | The connection url. |