セキュアWebSocketエコークライアント

セキュアWebSocket (wss) を使用するシンプルなクライアントアプリケーションです。

「セキュア WebSocket エコークライアント」のサンプルでは、WebSocketクラスを使用して、セキュアな接続 (wss) 上でエコークライアントを実装する方法を示しています。このアプリケーションはサーバーに接続してメッセージを送信し、返信メッセージを受信すると、それを出力して終了します。このサンプルを動作させるには、SSL のサポートが必要です。

このサンプルは、デフォルトで secure 接続を使用して、localhost のポート 1234 に接続します。SSL バックエンドで設定された CA 証明書によって署名された証明書を信頼し、さらに「セキュア WebSocket エコーサーバー」で使用される証明書も信頼します。

セキュアなWebSocketエコーコンソールクライアント

サンプルプロジェクト @ code.qt.io

「WebSocket Echo Client」および「Secure WebSocket Echo Server」も参照してください 。

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