Nt WebSockets C++ Classes
Classes for WebSocket clients and servers.
Using the Module
target_link_libraries(app PRIVATE Nt::WebSockets)
Nt WebSockets implements the WebSocket protocol (RFC 6455) on top of Nt Network: QWebSocket is a connection, as a client or accepted by a server, and QWebSocketServer accepts connections. Nt HTTP Server can also accept WebSocket upgrades on its own port.
See Using Nt WebSockets for a walk through, and examples/websockets/echo.cpp for a complete program.
Classes
| QMaskGenerator | The QMaskGenerator class is the base of generators of the masking keys that WebSocket clients use. |
| QWebSocket | The QWebSocket class is a WebSocket connection, as a client or as one end accepted by a server. |
| QWebSocketCorsAuthenticator | The QWebSocketCorsAuthenticator class decides whether a WebSocket client's origin is accepted. |
| QWebSocketHandshakeOptions | The QWebSocketHandshakeOptions class holds options of a WebSocket client's opening handshake. |
| QWebSocketProtocol | The QWebSocketProtocol namespace holds the versions and close codes of the WebSocket protocol. |
| QWebSocketServer | The QWebSocketServer class accepts WebSocket connections. |