展示如何创建发送回接收消息的,简单服务器应用程序。
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.
客户端范例
另请参阅 回显客户端范例 .