Skip to content

Instantly share code, notes, and snippets.

@mikeal
Forked from polotek/sio_stress_test.js
Created August 16, 2011 23:11
Show Gist options
  • Save mikeal/1150415 to your computer and use it in GitHub Desktop.
Save mikeal/1150415 to your computer and use it in GitHub Desktop.
var io = require('socket.io-client');
function createPad (c, cb) {
var c = io.connect("http://localhost:9001")
c.on('error', function (e) {console.error(e)})
c.json.send(
{ "component": "pad"
, "type": "CLIENT_READY"
, "padId": "newtest"
, "token": "t.nBgzpGa9VEdPINUQpYCF"
, "protocolVersion":2
}
)
}
console.log(i)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment