6.0.0-rc4Source

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

QMaskGeneratorThe QMaskGenerator class is the base of generators of the masking keys that WebSocket clients use.
QWebSocketThe QWebSocket class is a WebSocket connection, as a client or as one end accepted by a server.
QWebSocketCorsAuthenticatorThe QWebSocketCorsAuthenticator class decides whether a WebSocket client's origin is accepted.
QWebSocketHandshakeOptionsThe QWebSocketHandshakeOptions class holds options of a WebSocket client's opening handshake.
QWebSocketProtocolThe QWebSocketProtocol namespace holds the versions and close codes of the WebSocket protocol.
QWebSocketServerThe QWebSocketServer class accepts WebSocket connections.