5

Are there any websocket plugins for nodejs; I would like to develop some application that uses websockets.

cmpolis
  • 3,051
  • 21
  • 19
user7044
  • 309
  • 2
  • 6

3 Answers3

7

Checkout Socket.IO - it's a widely used and powerful Node module for socket connections.

cmpolis
  • 3,051
  • 21
  • 19
  • For sure socket.io is the best solution, because it will also work on browsers which do not support websockets like for example Internet Explorer. – Alfred Aug 30 '11 at 03:24
  • Also, don't fail to mention [Zappa](http://thechangelog.com/post/1582034775/zappa-razor-sharp-dsl-for-modern-web-apps), a full-stack web-based appserver with socket.io already installed as part of its toolkit. – Elf Sternberg Aug 30 '11 at 22:28
2

WebSocket-Node is a pure WebSocket implementation in node.js that supports the latest version of the WebSocket spec (version 8), and is still being actively maintained.

Otherwise Socket.io has broader browser support because it can fall back to things such as Flash Sockets, long lived iframes etc.

Sunday Ironfoot
  • 12,840
  • 15
  • 75
  • 91
1

Like cmpolis mentioned, Socket.IO is excellent. Just upgraded to 0.8 too.

nowjs also provides a higher-level api if you like more abstraction.

Similar to nowjs, dnode allows you to call remote functions between the client and server and vice versa.

Here is a great SO answer delineating the differences between them.

Community
  • 1
  • 1
Qcom
  • 18,263
  • 29
  • 87
  • 113