WebSocket Echo Server | Qt WebSockets | Qt 6.11.2
Description: Show how to write a simple WebSocket server application.

- Qt 6.11
- Qt WebSockets
- Qt WebSockets Examples
- WebSocket Echo Server
- Qt 6.11.2 Reference Documentation

# WebSocket Echo Server

Show how to write a simple WebSocket server application.

This Echo Server shows how to create a simple server application that sends back a reply in response to a message it receives, using the WebSocket API. For the sake of illustration, the reply is simply a copy of the message.

If your web browser supports WebSocket, you can also use it to open the `echoserver/echoclient.html`{echoclient.html} file, and operate as shown in the following screenshot:

Otherwise use the WebSocket Echo Client to connect to the server.

Example project @ code.qt.io

See also WebSocket Echo Client.