Qt WebSockets Examples

The examples below can be used as a guide to using the Qt WebSockets API.

Echo Client Example

Describes how to use the WebSocket API for creating a simple echo client.

Echo Server Example

Shows how to create a simple server application that sends back the messages it receives.

QML WebSocket Client Example

Explains how to program a QML WebSocket client example.

QML WebSocket Server Example

A simple example that shows how to use a QML WebSocketServer.

SSL Echo Client Example

Shows how to use the QWebSocket class to implement an echo client over a secure connection (wss).

SSL Echo Server Example

Shows how to use the QWebSocketServer class for implementing a simple echo server over secure sockets (wss).

Simple Chat Example

Shows how to use the QWebSocket and QWebSocketServer classes for creating a minimalistic chat application over the WebSocket protocol.

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