socket-controllers icon indicating copy to clipboard operation
socket-controllers copied to clipboard

feat: middleware on a message/controller basis

Open gabekus opened this issue 5 years ago • 4 comments

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
}

gabekus avatar Oct 14 '19 21:10 gabekus

Hi. We plan to implement Authorized decorator as routing-controllers, middlewares is used only on controllers

rustamwin avatar Oct 15 '19 06:10 rustamwin

Any status on this development?

gabekus avatar Dec 10 '19 10:12 gabekus

Bump?

gabekus avatar Feb 12 '21 08:02 gabekus

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.

NoNameProvided avatar Feb 13 '21 19:02 NoNameProvided

This is now possible through interceptors.

attilaorosz avatar Apr 11 '23 17:04 attilaorosz

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.

github-actions[bot] avatar May 12 '23 01:05 github-actions[bot]