Note that there are some explanatory texts on larger screens.

plurals
  1. POSocket.io warn: client not handshaken client should reconnect
    text
    copied!<p>Below is my code. I have been in several forums on how to fixed the issue. My nodejs is disconnecting and sending me this warn message. <code>warn: client not handshake client should reconnect</code>.</p> <pre><code>var onInterval = function() { countdown--; var data = { countdown : countdown, startTime : startTime, endTime : endTime, } if(countdown == 0){ var endTime = currTimer(); winnerBox = randomFromInterval(1,2); clearInterval(myInterval); setTimeout(function(){ countdown = 30; myInterval = setInterval(onInterval, 1000); }, 500); } io.sockets.emit('timer', { result: data }); } var myInterval = setInterval(onInterval, 1000); io.sockets.on('connection', function (socket){ socket.on('addUsers', function (data, callback) { socket.username = data.username; var message; if (clients.hasOwnProperty(socket.id)){ if (clients[socket.id].alias == data.alias &amp;&amp; clients[socket.id].itemid == data.itemid &amp;&amp; clients[socket.id].box == data.box) { delete clients[socket.id]; io.sockets.emit('displayUsers', {users: data.alias, cancel : true}); }else { clients[socket.id].itemid = data.itemid; clients[socket.id].box = data.box; clients[socket.id].key_price = data.key_price; clients[socket.id].alias = data.alias; clients[socket.id].message = '2' ; clients[socket.id].username = data.username ; io.sockets.emit('displayUsers', {users: clients[socket.id], cancel : false}); } }else { clients[socket.id] = { username : data.username, userid : data.user_id, alias : data.alias, itemid : data.itemid, box : data.box, socket_id : socket.id, key_price : data.key_price, message : '1', } io.sockets.emit('displayUsers', {users: clients[socket.id], cancel : false}); } }); }); </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload