Dynamic event names for NestJS websocket

Viewed 162

In NestJS, in order to subscribe to events in socket.io communication we can use @SubscribeMessage annotation, but, in this way we can only have "hardcoded" event names.

Is there a posibility to dynamically listen for events ? For example, to listen to events with format prefix.. ?

Thanks.

0 Answers
Related