Note that there are some explanatory texts on larger screens.

plurals
  1. POSocketIO + Node - Recovering Lost Connections
    text
    copied!<p>Im using socketio/node, to pump out some funky stats to the browser, all standard stuff. I am using the latest versions of both libraries. Now, i am having a couple of issues with this:</p> <p>1) Warning messages in the node log:</p> <pre><code>(node) warning: possible EventEmitter memory leak detected. 11 listeners added. Use emitter.setMaxListeners() to increase limit. Trace: at CleartextStream.&lt;anonymous&gt; (events.js:101:17) at [object Object].&lt;anonymous&gt; (/var/www/lib/other/Socket.IO/lib/socket.io/client.js:83:20) at [object Object]._onConnect (/var/www/lib/other/Socket.IO/lib/socket.io/transports/xhr-polling.js:23:35) at [object Object].check (/var/www/lib/other/Socket.IO/lib/socket.io/listener.js:77:12) at Server.&lt;anonymous&gt; (/var/www/lib/other/Socket.IO/lib/socket.io/listener.js:33:14) at Server.emit (events.js:45:17) at HTTPParser.onIncoming (http.js:904:12) at HTTPParser.onHeadersComplete (http.js:87:31) at CleartextStream.ondata (http.js:820:22) at CleartextStream._blow (tls.js:228:29) </code></pre> <p>This is an example of an XHR warning, which i can kinda understand as the nature of XHR is multiple connects/disconnects. However, when i have quite a few clients connected by other transports i get the same. </p> <p>2) Random connection drop outs. For some inexplicable reason, connections randomly drop out. This isnt machine or browser or even transport specific. The connection on a browser will just randomly stop receiving updates. There is no specific disconnect message in the node logs and manually refreshing the browser fixes the problem. </p> <p>So, what im wondering is - are these 2 issues related, or separate issues? Have you experienced these connection drop outs? If so, how have you managed to solve them? Its quite frustrating, as its so close to being 100% perfect. I would love to feel warm and snug in the knowledge that all clients viewing the pages of my application would receive consistent updates for hours, even days if they wanted. </p> <p>Your help and advice is much appreciated!</p> <p>Cheers,</p> <p>Pete</p>
 

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