Using websocket/socket.io for partial page refresh -


installed websocket , socket.io run im in website , partial page refreshes. im coded , working fine. partial page refreshes, coded in server:

// receive , broadcast log or monitors update    socket.on('sendupdate', function(id)    {       io.sockets.emit('getupdate', id);    }); 

and in client:

// send update log or monitors server     function sendupdate(id)  // log , monitors table changes     {       socket.emit('sendupdate', id); // send server broadcast clients     };      // receive log or monitors update     function getupdate(id)     {   // how this??? }; 

so, how can update html element id without refreshing whole page? advice appreciated.


Comments

Popular posts from this blog

python - mat is not a numerical tuple : openCV error -

c# - MSAA finds controls UI Automation doesn't -

wordpress - .htaccess: RewriteRule: bad flag delimiters -