#include <icy/http/websocket.h>Inherits:
WebSocketAdapter
WebSocket class which belongs to an HTTP connection.
| Return | Name | Description |
|---|---|---|
ConnectionAdapter | Creates a ConnectionAdapter for upgrading an existing HTTP connection to WebSocket. Disables automatic header sending on the underlying connection. | |
void | onHandshakeComplete virtual | Called when the WebSocket handshake completes. Emits the connect event via the socket emitter chain. |
ConnectionAdapter(Connection * connection, ws::Mode mode)Creates a ConnectionAdapter for upgrading an existing HTTP connection to WebSocket. Disables automatic header sending on the underlying connection.
connection The HTTP connection to upgrade.
mode ServerSide or ClientSide.
virtual
virtual void onHandshakeComplete()Called when the WebSocket handshake completes. Emits the connect event via the socket emitter chain.
| Return | Name | Description |
|---|---|---|
Connection * | _connection |
Connection * _connection