Client Echo sécurisé par WebSocket
Une application client simple utilisant des WebSockets sécurisés (wss).
L'exemple Secure WebSocket Echo Client montre comment utiliser la classe WebSocket pour mettre en œuvre un client d'écho sur une connexion sécurisée (wss). Il se connecte à un serveur et envoie un message. Lorsqu'il reçoit un message en retour, il l'imprime et quitte. La prise en charge de SSL est nécessaire pour que cet exemple fonctionne.
Cet exemple se connecte par défaut à localhost sur le port 1234 en utilisant une connexion sécurisée. Il fait confiance aux certificats signés par les certificats CA configurés dans le backend SSL, et en plus il fait confiance au certificat utilisé par Secure WebSocket Echo Server.

Voir aussi WebSocket Echo Client et 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.