Help Needed: Real-Time Notifications with Socket.IO in Next.js 15
Unanswered
Transvaal lion posted this in #help-forum
Transvaal lionOP
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!
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!
19 Replies
Transvaal lionOP
Sorry I don't understand What do you mean
@Transvaal lion Sorry I don't understand What do you mean
Dutch
how a webapp will send a notification to user
Transvaal lionOP
With shadcn ui in toast with Sonner I will
Dutch
its not notification
Transvaal lionOP
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
Dutch
yep this is notification
Transvaal lionOP
Yes I whant implement this I think
Dutch
probably pusher will do it
Transvaal lionOP
Do you think having a system, for example, with a Notification table in my database would be better than using toasts?
Dutch
but you need to deploy it seperately as service
its stateful
Transvaal lionOP
Mhhh with Node, Express client?
And why Socket IO is not an option ?
Sorry I m begginner..😅🫶
Dutch
socket.io is library but you need to make everything yourself with it
pusher gives you code and options
also if you are beginner, its hard to understand stateful servers, its complex thing to manage