セキュアウェブソケットエコークライアント

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

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

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

Secure WebSocket Echo Console Client

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

WebSocket Echo Clientおよび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.