Notify Socket to send message after database update

Viewed 54

I'm using ws on nodejs currently to link to WebSockets on the frontend.

I'd like to emit a message to all websockets with X id when a database change happens.

Is there a way to have the ws listen to database changes? OR Is there a way to notify the ws that there's been a database update?

0 Answers
Related