HTTP module
ws::ConnectionAdapter
WebSocket class which belongs to an HTTP connection.
ConnectionAdapter
#include <icy/http/websocket.h>Inherits:
WebSocketAdapter
WebSocket class which belongs to an HTTP connection.
Public Methods
| 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
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.
Parameters
connectionThe HTTP connection to upgrade.modeServerSide or ClientSide.
onHandshakeComplete
virtual
virtual void onHandshakeComplete()Called when the WebSocket handshake completes. Emits the connect event via the socket emitter chain.
Protected Attributes
| Return | Name | Description |
|---|---|---|
Connection * | _connection |
_connection
Connection * _connection