该demo是为了学习nodejs实时通信而写的,里面包含的三种实现方式: websocket/socket.io/EventSource.
websocket: node ws.js
socket.io: node io.js
EventSource: node es.js
为了看懂这3个demo,可以参考我的系列文章:
该demo是为了学习nodejs实时通信而写的,里面包含的三种实现方式: websocket/socket.io/EventSource.
websocket: node ws.js
socket.io: node io.js
EventSource: node es.js
为了看懂这3个demo,可以参考我的系列文章: