WebSocket 에코 서버

간단한 WebSocket 서버 애플리케이션을 작성하는 방법을 보여줍니다.

이 에코 서버는 WebSocket API를 사용하여 수신한 메시지에 대한 응답으로 답장을 되돌려 보내는 간단한 서버 애플리케이션을 만드는 방법을 보여줍니다. 설명을 위해, 답장은 단순히 메시지의 복사본입니다.

사용 중인 웹 브라우저가 WebSocket을 지원하는 경우, echoserver/echoclient.html{echoclient.html} 파일을 열어 다음 스크린샷과 같이 작동해 볼 수 있습니다.

WebSocket 에코 HTML 클라이언트

그렇지 않은 경우 WebSocket Echo Client를 사용하여 서버에 연결하십시오.

코드 예제 @ code.qt.io

WebSocket 에코 클라이언트항목도 참조하십시오 .

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