socketio-wildcard
Socket.io with a wildcard event.
Works with Socket.io v1.x
- v2.x
.
Tested with node.js v4.x
, v5.x
, v6.x
, v7.x
.
Installation
npm install --save socketio-wildcard
Usage
Server
var io = ;var middleware = ; io; io; io;
Client
var io = ;var socket = ;// piggyback using the event-emitter bundled with socket.io clientvar patch = ioManager;; socket
Changelog
[2.0.0] - 2016-05-23
- no breaking change
- update test dependencies for socket.io v2
[0.3.0] - 2015-12-21
- allow custom event emitter
- support socket.io client
[0.2.0] - 2015-11-29
- wildcard listener for all events get called first (@Michael77)
- removed coffee-script dependency
Licence
MIT