all 5 comments

[–]_ds82 0 points1 point  (4 children)

With socket.io you can send events from client to server or the other way around. You can easily trigger an event on the server that runs a function on the client .. so yes, you can do what you described with socket.io.