express.io-middleware
This Express.io extension adds middleware and multiroute functionality to app.io. It also adds app.io.event and app.io.namespace properties, which contains signal name and namespace (before ':' part) respectively.
Tested with express.io 1.1.x.
Installation:
$ npm install express.io-middleware
Example:
// ...app; app; // first of all, you should patch express.io app after calling app.io(); /*** @param* @param*/appio; /*** You may use regular expressions to bind middleware execution only for specified signals.*/appio; appio; /*** Also, you may build chain of signals handlers.*/appio;
Note that all middlewares should be declared strongly before declaration of routes, for which it should be applied.