Servidor WebSocket Echo

Muestra cómo escribir una sencilla aplicación de servidor WebSocket.

Este Servidor de Eco muestra cómo crear una aplicación de servidor simple que envía una respuesta a un mensaje que recibe, utilizando la API WebSocket. A modo de ilustración, la respuesta es simplemente una copia del mensaje.

Si su navegador web soporta WebSocket, también puede utilizarlo para abrir el archivo echoserver/echoclient.html{echoclient.html}, y operar como se muestra en la siguiente captura de pantalla:

Cliente WebSocket Echo HTML

En caso contrario utilice el WebSocket Echo Client para conectarse al servidor.

Proyecto de ejemplo @ code.qt.io

Vea también WebSocket Echo Client.

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