1
iwege 2014-06-12 12:47:53 +08:00
1. socket.io
2. socket.io : 1.0 is right around the corner, which features our next-generation realtime core, Engine.IO. https://groups.google.com/forum/#!topic/socket_io/BudZpQiyMbQ |
2
iwege 2014-06-12 12:51:29 +08:00 1
关于第二个问题,还可以看看socket.io的依赖。
https://github.com/Automattic/socket.io/blob/master/package.json "dependencies": { "engine.io": "1.2.2", ... } 所以实际上使用socket.io就好了。socket.io主要是兼容性好。没有websocket也有其他的fallback |
4
yyfearth 2014-06-12 14:19:01 +08:00
|
5
skybr 2014-06-12 14:46:04 +08:00
engine.io和sockjs注重的是兼容浏览器的前后端实现.
socket.io专注的是包括验证、rooms、broadcast接口和实现在内的业务. |