【发布时间】:2016-06-21 03:08:55
【问题描述】:
我知道如何使用websockets从客户端连接到服务器端,只需编写以下代码:
var connection = new WebSocket('ws://mywebsite-url.com');
现在我想在 socket.io 中使用类似的东西来创建我的实时聊天支持系统..
或者
我必须使用 websockets 将值传递给 node.js 服务器并使用 socket.io 编辑数据并将其发送到将回复客户端的代理?
【问题讨论】:
-
A tutorial of how to create a live chat system is actually featured on the homepage of socket.io,并且没有明确使用 websockets。有没有你不能从那个教程中使用的东西?
标签: node.js websocket socket.io