Not receiving notifications on websocket
We're using @novu/react and we're not receiving any messages on the websocket. We render the Inbox as our povider:
It establishes a connection and exchange ping/pong messages. But we do not receive a message for that subscriber when a notification is delivered. The user has to refresh the page to see the notifications. I would appreciate some help debugging this! π
9 Replies
Axel
Could you please share the @novu/react version?
Could you please share the @novu/react version?
Thanks @Pawan Jain , we use version 3.4.0
Axel,
Could you try updating these two: - Update the
Could you try updating these two: - Update the
@novu/react to the latest version 3.10.1
- Update the websocket URL with wss://eu.socket.novu.co@Pawan Jain that fixed it thanks! π
We see a warning in the browser that fires every time we open the <Notifications />:
"cleanups created outside a
createRoot or render will never be run"
Is this something to worry about? We've built our custom popover:
Axel,
I will update you on this after checking with team. Give me some time
I will update you on this after checking with team. Give me some time
Thanks @Pawan Jain ! After updating we experience a new issue. When some users click a notification inside the custom popover an uncaught promise is thrown and we don't navigate. "TypeError: e.notification.read is not a function". Could it be that the routerPush interfers somehow with our onNotificationClick callback that we pass?

Could you please share full implementation of <NovuNotifications /> component
@Pawan Jain <NovuNotifications /> is just an alias:
Hi Axel
Are you wrapping <Popover> component in <Inbox /> component?
Are you wrapping <Popover> component in <Inbox /> component?