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/
Written by angel torralba duran
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Mysql
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#