Rustam Mamadaminov
Rustam Mamadaminov
See [sample5](https://github.com/typestack/socket-controllers/tree/master/sample/sample5-middlewares) ```typescript @Middleware() export class AuthenticationMiddleware implements MiddlewareInterface { use(socket: any, next: ((err?: any) => any)): any { // where socketio instance. not connected socket instance! console.log("authentication..."); // your...
What did you mean "routes"? events?
if yes, it is problem
For events no, because the middlewares works globally. As I said before it is problem
Hi. We plan to implement `Authorized` decorator as `routing-controllers`, middlewares is used only on controllers
@pleerock :slightly_smiling_face:
I think, all filters should be implemented as middleware :)
yiisoft/active-record#16
How about add support mongodb 4 compatibility