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

Este ejemplo abre una ventana y cuenta con un WebSocketServer que escucha las conexiones entrantes y un WebSocket que se conecta a WebSocketServer. Cada vez que se hace clic en la ventana, el WebSocket envía un mensaje a WebSocketServer. El WebSocketServer cuenta con un controlador de señales que registra el mensaje entrante en la ventana y envía un mensaje de respuesta, mientras que el WebSocket cuenta con un controlador de señales que registra el mensaje de respuesta en 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.