Servidor WebSocket QML
Un ejemplo sencillo que muestra cómo utilizar un QML WebSocketServer.

Este ejemplo abre una ventana y tiene un WebSocketServer a la escucha de conexiones entrantes y un WebSocket que se conecta al WebSocketServer. Cada vez que se hace clic en la ventana, el WebSocket envía un mensaje al WebSocketServer. El WebSocketServer tiene un manejador de señales que registra el mensaje entrante en la ventana y envía un mensaje de vuelta, y el WebSocket tiene un manejador de señales que registra el mensaje devuelto a la ventana.
© 2026 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.