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:

../_images/echoclient-html-example.png

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

Example project @ code.qt.io