Last Updated: February 25, 2016
·
419
· angeltduran

Dont forget how to update on all browsers with socket.io

Somtimes you want to show the updated records accross all open browsers.
I was wondering why my code wasnt working.

<javascript>

//repopulate employees on client
getlastsold_product(function(products) {
io.sockets.emit('populate', poroducts);
}
</javascript>
source http://blog.luksidadi.com/mysql-nodejs-socketio-tutorial/