Skip to content

Instantly share code, notes, and snippets.

@dokipen
Created April 18, 2011 18:39
Show Gist options
  • Select an option

  • Save dokipen/925889 to your computer and use it in GitHub Desktop.

Select an option

Save dokipen/925889 to your computer and use it in GitHub Desktop.
#!/usr/bin/env node
var sys = require('sys')
, WebSocket = require('websocket-client').WebSocket
, ws = new WebSocket('ws://localhost:8000/socket.io/websocket', 'borf')
ws.on('open', function() {
ws.send('listen stomp-client')
})
ws.on('data', function(m) {
console.log(m.toString('utf8'))
console.log('--------------------------------------------------------------------------------------')
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment