간단한 WebSocket 채팅
WebSocket 프로토콜을 사용하는 최소한의 채팅 애플리케이션입니다.
이 애플리케이션은 QWebSocket 및 QWebSocketServer 클래스를 사용하여 WebSocket 프로토콜을 기반으로 한 미니멀한 채팅 애플리케이션을 만드는 방법을 보여줍니다. 이 예제는 여러 클라이언트가 연결하여 메시지를 주고받을 수 있도록 허용하는 서버입니다.
기본적으로 localhost의 1234번 포트에서 연결을 수신 대기합니다. 이 서버는 연결된 모든 클라이언트를 추적하며, 클라이언트 중 하나가 서버로 메시지를 보낼 때마다 해당 메시지는 다른 모든 클라이언트에게 전달됩니다. 클라이언트가 연결을 끊으면 클라이언트 목록에서 제거됩니다.

또한 서버에 연결 및 연결 해제, 연결 상태 조회, 메시지 전송, 다른 클라이언트가 보낸 모든 메시지 확인 등에 사용되는 HTML 클라이언트도 포함되어 있습니다.
© 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.