迴顯服務器範例

展示如何創建發送迴接收消息的,簡單服務器應用程序。

The Echo Server Example shows how to create a simple server application that sends back the messages it receives, using the WebSocket API.

若 Web 瀏覽器支持 WebSocket ,還能用它打開 echoserver/echoclient.html {echoclient.html} file, and operate like the following screenshot.

Screenshot of the HTML version of Echo

客戶端範例

範例工程 @ code.qt.io

另請參閱 迴顯客戶端範例 .