Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>This is caused by a commit made to the EventEmitter lib of nodejs in a recent change. I've opened an issue on socket.io.</p> <p><a href="https://github.com/LearnBoost/socket.io/issues/987" rel="nofollow">https://github.com/LearnBoost/socket.io/issues/987</a></p> <p><strong>UPDATE</strong></p> <p>This issue has been fixed as of socket.io 0.9.12</p> <p>Fix: <a href="https://github.com/LearnBoost/socket.io/blob/0.9.12/lib/manager.js#L116" rel="nofollow">https://github.com/LearnBoost/socket.io/blob/0.9.12/lib/manager.js#L116</a></p> <p>Commit: <a href="https://github.com/LearnBoost/socket.io/commit/0d3313f536d0231932dd6617db449a071f5bc03a" rel="nofollow">https://github.com/LearnBoost/socket.io/commit/0d3313f536d0231932dd6617db449a071f5bc03a</a></p> <hr> <p><strong>Can not serve socket.io.js when listening on port. (node 0.9.1-pre, socket.io 0.9.9)</strong></p> <p>Due to a recent commit to node, you can no longer splice out event listeners. This causes socket.io to display the welcome message when trying to access the socket.io.js client file as the original event listener does not get removed.</p> <p>Example breakage:</p> <pre><code>var socketIO = require('socket.io').listen(8000); </code></pre> <p>This breaks due to the way node 0.9.1-pre changed the way you can access listeners for the EventEmitter lib.</p> <p>nodejs commit that breaks socket.io</p> <blockquote> <p>Make EventEmitter.listeners(event) return a copy of the listeners array instead of the array itself.</p> </blockquote> <pre><code>EventEmitter.prototype.listeners = function(type) { if (!isArray(this._events[type])) { this._events[type] = [this._events[type]]; } - return this._events[type]; + return this._events[type].slice(0); }; </code></pre> <p><a href="https://github.com/joyent/node/commit/20e12e4be37f394672c001fdb9b05c0275731901#L1R245" rel="nofollow">https://github.com/joyent/node/commit/20e12e4be37f394672c001fdb9b05c0275731901#L1R245</a></p> <p>Relative socket.io code:</p> <pre><code>// reset listeners this.oldListeners = server.listeners('request').splice(0); </code></pre> <p><a href="https://github.com/LearnBoost/socket.io/blob/master/lib/manager.js#L115" rel="nofollow">https://github.com/LearnBoost/socket.io/blob/master/lib/manager.js#L115</a></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