QML WebSocket Server

A simple example that shows how to use a QML WebSocketServer.

QML WebSocket Server GUI

This example opens a window and has a WebSocketServer listening for incoming connections and a WebSocket connecting to the WebSocketServer. Every time the window is clicked, the WebSocket sends a message to the WebSocketServer. The WebSocketServer has a signal handler that logs the incoming message to the window and sends a message back again, and the WebSocket has a signal handler that logs the returned message to the window.

Example project @ code.qt.io

© 2024 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.