Serveur WebSocket « Echo »
Découvrez comment écrire une application serveur WebSocket simple.
Ce serveur Echo montre comment créer une application serveur simple qui renvoie une réponse à un message reçu, à l'aide de l'API WebSocket. À titre d'illustration, la réponse est simplement une copie du message.
Si votre navigateur Web prend en charge WebSocket, vous pouvez également l'utiliser pour ouvrir le fichier echoserver/echoclient.html{echoclient.html} et procéder comme indiqué dans la capture d'écran suivante :

Sinon, utilisez le client WebSocket Echo pour vous connecter au serveur.
Voir également Client Echo WebSocket.
© 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.