Socket Id Decorator
Socket Id Decorator#
This decorator is needed when you want to specifiy where nestjs-pusher should fetch your socket id to exclude from events. You can read more about socket id in https://pusher.com/docs/channels/server_api/excluding-event-recipients
Header name (default = x-pusher-sid)#
Factory#
In this example we'll be reading from the body of the request in a field named "socketId" but you can read from anywhere in the request (typically its advisable to come in a custom header)