WebSocketエコー・クライアント
簡単な WebSocket クライアント・アプリケーションの書き方を示します。
Echo Client は、WebSocketAPI を使用してサーバーにメッセージを送信し、サーバーが返す応答を処理する方法を示します。
このクライアントはデフォルトで、ローカルポート 1234 をリッスンしているサーバーへの WebSocket 接続を開きます。接続に成功すると、クライアントはサーバーにメッセージを送信し、サーバーが送信した応答を出力します。その後、クライアントは接続を閉じます。
説明の便宜上、WebSocket Echo Serverを使用し、その応答は単に送信されたメッセージです。
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.