安全 WebSocket Echo 客户端
使用安全 WebSocket (wss) 的简单客户端应用程序。
安全 WebSocket 回声客户端示例展示了如何使用WebSocket类通过安全连接 (wss) 实现回声客户端。它连接到服务器并发送信息,当收到回传信息时,打印出来并退出。本示例需要 SSL 支持才能运行。
本例默认使用安全连接连接到 1234 端口的 localhost。它信任 SSL 后端配置的 CA 证书签署的证书,此外还信任Secure WebSocket Echo Server 使用的证书。
© 2025 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.