展示如何創建發送迴接收消息的,簡單服務器應用程序。
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 ,還能用它打開 echoclient.html file, and operate like the following screenshot.
客戶端範例
文件:
另請參閱 迴顯客戶端範例 .