安全 WebSocket 迴顯客戶端

使用 WSS (安全 WebSockets) 的簡單客戶端應用程序。

The Secure WebSocket Echo Client example shows how to use the WebSocket class to implement an echo client over a secure connection (wss). It connects to a server and sends a message, and when it receives a message back, it prints it out and exits. SSL support is required for this example to work.

This example connects by default to localhost at port 1234 using a secure connection. It trusts the certificates signed by the CA certificates configured in the SSL backend, and in addition trusts the certificate used by 安全 WebSocket 迴顯服務器 .

Secure WebSocket Echo Console Client

範例工程 @ code.qt.io

另請參閱 WebSocket 迴顯客戶端 and 安全 WebSocket 迴顯服務器 .