yellowbird_33747
yellowbird_33747
NNovu
Created by yellowbird_33747 on 9/8/2023 in #💬│support
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!
4 replies