node package manager
Painless code sharing. npm Orgs help your team discover, share, and reuse code. Create a free org »




  • WebSocket based apps needs to be on ecosystem, like connect, express.
  • WebSocket other websocket frameworks are too monolithic.
  • make your life easy: use a module bundler on the client

this is all you need:

var emitter = require('skates')()
setInterval(function () {
}, 1e3)
emitter.on('pong', function (time) {
  console.log('latency:', time)

and this:

var skates = require('skates')
var connect = require('connect')
var app = skates.createServer()
  .on('connection', function (emitter) {
    emitter.on('ping', function (time) {
      emitter.emit('pong', - time)

too easy.

oh, yeah.

<!-- public/index.html -->
<!doctype html>
    <script src=/browserify.js></script> 

then node server & google-chrome localhost:3000