Local environment web socket not working

I have spinned up all the novu services locally and got the spinned up message. Web: http://localhost:4200 API: http://localhost:3000 WS: http://localhost:3002 Worker: http://localhost:3004 Everything worked fine except the web socket. I created and triggered a new workflow to in-app. I can view and mark read/unread notifications in my React app using the @novu/notification-center library. But I have to refresh my page everytime. When a notification is sent, I don't immediately see it in the notification center. Here's my code
<NovuProvider
applicationIdentifier="070bx1A7nIlu"
backendUrl="http://localhost:3000"
socketUrl="http://localhost:3002"
subscriberId="1"
>
<CustomNotificationCenter />
</NovuProvider>
<NovuProvider
applicationIdentifier="070bx1A7nIlu"
backendUrl="http://localhost:3000"
socketUrl="http://localhost:3002"
subscriberId="1"
>
<CustomNotificationCenter />
</NovuProvider>
Can someone help? Thanks!
3 Replies
Novu_Bot
Novu_Bot16mo ago
Sorry, this request does not comply with MEE6 content policy. Modify it and try again.
yellowbird_33747
yellowbird_33747OP16mo ago
I don't know what MEE6 content policy is.
Pawan Jain
Pawan Jain16mo ago
Hi @yellowbird_33747 Do you see any error in console or network tab in browser related to websocket requests
Want results from more Discord servers?
Add your server