回显服务器范例

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.

Screenshot of the HTML version of Echo

客户端范例

文件:

另请参阅 回显客户端范例 .