M
M
Mikhailo Poberezhny2016-01-22 01:59:00
MongoDB
Mikhailo Poberezhny, 2016-01-22 01:59:00

Notification in node.js?

We have a user, if an order is created for him, then inform him about it in real-time. Please tell me how to organize it.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
T
Timur Shemsedinov, 2016-01-22
@MarcusAurelius

On the client https://learn.javascript.ru/websockets
On the server https://www.npmjs.com/package/websocket
Socket.io is absolutely not needed for anything these days, web sockets work everywhere without crutches.

L
lega, 2016-01-22
@lega

The simplest thing is that the client sends a request to the server once a minute to check if there are notifications for it.
And for good - websockets.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question