Custom Socket.IO middleware error events?
<p>Socket.IO allows middleware functions to pass errors.</p>

<pre><code>var io = require('socket.io')();
io.use(function(socket, next){
    if (socket.request.headers.cookie) return next();
    next(new Error('Authentication error'));
});
</code></pre>

<p>The client can listen for these errors by listening for the default 'error' event.</p>

<pre><code>clientIO.on('error', function(err) {
    console.log(err);
}
</code></pre>

<p>Is there any way to have Socket.IO middleware emit custom event names instead of 'error' (e.g., 'authentication_error')?</p>