Skip to content

evanlucas/socket.io-jstrace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socket.io-jstrace

jstrace middleware for socket.io

build status

Install

$ npm install --save socket.io-jstrace

Usage

var io = require('socket.io')()
  , trace = require('jstrace')
  , siotrace = require('socket.io-jstrace')
  
io.use(siotrace({
  trace: trace
}))

io.on('connection', function(socket) {
    
})

Probes

  • socket.io:connection:start socket connected
    • nsp the namespace
    • id the socket id
  • socket.io:connection:end socket disconnected
    • nsp the namespace
    • id the socket id

Tests

$ npm test

Coverage

$ npm run cover

License

MIT

About

jstrace middleware for socket.io

Resources

Stars

Watchers

Forks

Packages

No packages published