I have been playing around with Nodejs and now wanted to know if i could create live update to a view/page as shown in this tutorial here
The example above would apply to all users on site, what i want is to target my updates to certain users.
Do i create a array storing all the client sockets, a socket is created when the users logs in.
Another thing how can i update the webpage or the view if something has updated in the database do i poll the server every second?
I am using MySQL has database, should i used Redis instead?
EDIT: one more question I was wondering how can nodejs check if the database field/s have been updated or changed and than update the view or webpage?
thanks