rocketio-client

Sinatra::RocketIO Client

npm install rocketio-client
8 downloads in the last week
17 downloads in the last month

Node RocketIO Client

Ruby's Sinatra::RocketIO client library for Node.js

How to use

see sample/sample.coffee

RocketIO = require 'rocketio-client'
io = new RocketIO('http://localhost:5000').connect()

io.on 'connect', (io)->
  console.log "connect!! (#{io.type})"
  io.push 'hello', 'hello world'

io.on 'echo', (data)->
  console.log "echo> #{data}"
npm loves you