Skip to content

milne-dev/socketio-wildcard

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

socketio-wildcard

Build Status Build Status Build Status

NPM

Socket.io with a wildcard event.

Works with Socket.io v1.0.x - v1.3.x.

Tested with node.js v0.10.x, v0.11.x, v0.12.x, v4.1.x, v4.2.x, v5.x.

Installation

npm install --save socketio-wildcard

Usage

var io         = require('socket.io')();
var middleware = require('socketio-wildcard')();

io.use(middleware);

io.on('connection', function(socket) {
  socket.on('*', function(){ /* … */ });
});

io.listen(8000);

Licence

MIT

About

socket.io v1.x with a wildcard event

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • CoffeeScript 100.0%