간단한 웹소켓 채팅

WebSocket 프로토콜을 사용하는 최소한의 채팅 애플리케이션입니다.

이 애플리케이션은 QWebSocketQWebSocketServer 클래스를 사용하여 WebSocket 프로토콜을 통해 미니멀한 채팅 애플리케이션을 만드는 방법을 보여줍니다. 이 예제는 여러 클라이언트가 연결하여 메시지를 주고받을 수 있는 서버입니다.

기본적으로 로컬 호스트 포트 1234에서 수신 대기합니다. 이 서버는 연결된 모든 클라이언트를 추적하며, 클라이언트 중 하나가 서버에 메시지를 보낼 때마다 다른 모든 클라이언트에 메시지가 전달됩니다. 클라이언트가 연결을 끊으면 해당 클라이언트는 클라이언트 목록에서 제거됩니다.

Simple WebSocket Chat HTML Client

서버에 연결 및 연결 해제, 연결에 대한 쿼리, 메시지 전송, 다른 클라이언트가 보낸 모든 메시지 보기에 사용되는 HTML 클라이언트도 있습니다.

예제 프로젝트 @ 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.