jstrace middleware for socket.io
$ npm install --save socket.io-jstrace
var io = require('socket.io')()
, trace = require('jstrace')
, siotrace = require('socket.io-jstrace')
io.use(siotrace({
trace: trace
}))
io.on('connection', function(socket) {
})
socket.io:connection:start
socket connectednsp
the namespaceid
the socket id
socket.io:connection:end
socket disconnectednsp
the namespaceid
the socket id
$ npm test
$ npm run cover
MIT