Fork me on GitHub
ws: a node.js websocket implementation

npm install ws

it is easy to use, blazing fast and up-to-date against current HyBi protocol drafts.

it can send and receive typed arrays (ArrayBuffer, Float32Array, et al.) as binary data.

it passes the extensible Autobahn test suite: client report, server report.

it benchmarks very well: benchmarks.

example client use:

example server use:

it ships with a command line utility, 'wscat', which can either act as a server (--listen), or client (--connect). use it to debug simple websocket services.

example wscat use: