rocketio-client
v0.0.4
Published
Sinatra::RocketIO Client
Downloads
4
Readme
Node RocketIO Client
Ruby's Sinatra::RocketIO client library for Node.js
- https://github.com/shokai/node-rocketio-client
How to use
see sample/sample.coffee
RocketIO = require 'rocketio-client'
io = new RocketIO()
io.connect 'http://localhost:5000'
io.on 'connect', (io)->
console.log "connect!! (#{io.type})"
io.push 'hello', 'hello world'
io.on 'echo', (data)->
console.log "echo> #{data}"