Novu Headless Socket
Hey everyone! π
I'm using the Novu headless client and currently subscribing to:
However, I'd like to subscribe directly to the lower-level WebSocket event for notification_received.
The reason is that the payload I send via the API includes some additional fields that don't seem to be exposed by the notifications.notification_received event.
Is there a more elegant or recommended way to listen directly to the raw WebSocket payload, so I can access these extra fields?
Or should I extend the client and manually handle the WebSocket connection myself?
Thanks for any guidance! π
2 Replies
@Luiz Carvalho
You must be seeing data field in the notification response
payload values can be mapped to data object keys. checkout this doc
https://docs.novu.co/platform/inbox/react/components/inbox#data-object
Hi @Pawan Jain, I understand that it works, but I would like these parameters to come via API and not be linked to the template.