socket-controllers
socket-controllers copied to clipboard
feat: middleware on a message/controller basis
Would like to develop something like this..
@SocketController()
export default class ChatSocketController {
@UseBefore(AuthenticationMiddleware)
@OnMessage('sendMessage')
async sendMessage(
@SocketRequest() req: SocketRequestWithPlayer,
@SocketIO() io: Server) {
// logic
}
Hi.
We plan to implement Authorized
decorator as routing-controllers
, middlewares is used only on controllers
Any status on this development?
Bump?
I am not working on this project actively, and I haven't seen @rustamwin interact with this repo either. If you take a crack at it, I will try to review it, but I cannot promise a thing.
This is now possible through interceptors.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.