Server WebSocket QML

Un semplice esempio che illustra come utilizzare un server WebSocket QML ( WebSocketServer).

Interfaccia grafica dell'utente del server WebSocket QML

Questo esempio apre una finestra e presenta un WebSocketServer in ascolto delle connessioni in entrata e un WebSocket che si connette a WebSocketServer. Ogni volta che si fa clic sulla finestra, il WebSocket invia un messaggio a WebSocketServer. L’ WebSocketServer dispone di un gestore di segnali che registra il messaggio in entrata nella finestra e invia un messaggio di risposta, mentre il WebSocket dispone di un gestore di segnali che registra il messaggio di risposta nella finestra.

Progetto di esempio su code.qt.io

© 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.