qtwebsockets

WebSocket library for Qt applications (RFC 6455 compliant)

brewmacoslinux
Try with needOr install directly
Source

About

Provides WebSocket communication compliant with RFC 6455

Commands

qtwebsockets

Examples

Include qtwebsockets in a Qt project by linking the library in CMakeLists.txt$ find_package(Qt5WebSockets REQUIRED) and target_link_libraries(myapp Qt5::WebSockets)
Create a WebSocket server that listens for client connections$ QWebSocketServer server("MyServer", QWebSocketServer::SecureMode); server.listen(QHostAddress::LocalHost, 1234);
Connect to a remote WebSocket server from a Qt application$ QWebSocket socket; socket.open(QUrl("ws://echo.websocket.org"));