웹소켓 에코 클라이언트

간단한 웹소켓 클라이언트 애플리케이션을 작성하는 방법을 보여드립니다.

Echo 클라이언트는 WebSocket API를 사용하여 서버에 메시지를 보내고 서버가 반환하는 모든 응답을 처리하는 방법(이 경우에는 단순히 응답을 보고하는 방법)을 보여줍니다.

클라이언트는 기본적으로 로컬 포트 1234에서 수신 대기 중인 서버에 대한 WebSocket 연결을 엽니다. 연결 시도가 성공하면 클라이언트는 서버에 메시지를 보내고 서버가 보내는 모든 응답을 인쇄합니다. 그런 다음 클라이언트는 연결을 닫습니다.

WebSocket Echo Console Client

설명을 위해 단순히 전송된 메시지를 응답으로 출력하는 웹소켓 에코 서버를 사용합니다.

예제 프로젝트 @ code.qt.io

웹소켓 에코 서버도참조하세요 .

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