#Help Needed: Real-Time Notifications with Socket.IO in Next.js 15

1 messages · Page 1 of 1 (latest)

gaunt dragon
#

Hello everyone,

I'm working on a support platform that includes user testimonies, help requests, and comments. I want to implement a real-time notification system for admins.

Goal:

Whenever a new comment or testimony is posted, admins should receive a real-time toast notification in their panel, allowing them to approve or reject the content.

Tech Consideration:

I'm using Next.js 15.

I'm considering Socket.IO for real-time updates but also thought about using Pusher.

Request for Help:

What's the best approach to implement real-time notifications in a Next.js 15 project?

Is Socket.IO the right choice, or would Pusher be better?

How should I configure the server and client properly in a Next.js environment?

Thanks in advance for any guidance!

pliant novaBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

steady sandal
gaunt dragon
#

Sorry I don't understand What do you mean

steady sandal
gaunt dragon
#

With shadcn ui in toast with Sonner I will

steady sandal
#

its not notification

gaunt dragon
#

I would like that every time a creation is made via the form, it sends either an SSE request or creates a client and uses Socket.io in a mono repo.

#

With Server Action or API route

steady sandal
#

yep this is notification

gaunt dragon
#

Yes I whant implement this I think

steady sandal
#

probably pusher will do it

gaunt dragon
#

Do you think having a system, for example, with a Notification table in my database would be better than using toasts?

steady sandal
#

but you need to deploy it seperately as service

#

its stateful

gaunt dragon
#

Mhhh with Node, Express client?

#

And why Socket IO is not an option ?

#

Sorry I m begginner..😅🫶

steady sandal
#

socket.io is library but you need to make everything yourself with it

#

pusher gives you code and options