Cliente WebSocket Echo seguro
Una sencilla aplicación cliente que utiliza WebSockets seguros (wss).
El ejemplo Secure WebSocket Echo Client muestra cómo utilizar la clase WebSocket para implementar un cliente echo sobre una conexión segura (wss). Se conecta a un servidor y envía un mensaje, y cuando recibe un mensaje de vuelta, lo imprime y sale. Se requiere soporte SSL para que este ejemplo funcione.
Este ejemplo se conecta por defecto a localhost en el puerto 1234 utilizando una conexión segura. Confía en los certificados firmados por los certificados CA configurados en el backend SSL, y además confía en el certificado utilizado por Secure WebSocket Echo Server.

Véase también WebSocket Echo Client y Secure WebSocket Echo Server.
© 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.