mirror of
https://github.com/socketio/socket.io.git
synced 2026-04-30 03:00:39 -04:00
Fixed references to listener when logging
This commit is contained in:
@@ -33,7 +33,7 @@ HTMLFile.prototype._onConnect = function(req, res){
|
||||
var msg = qs.parse(body);
|
||||
self._onMessage(msg.data);
|
||||
} catch(e){
|
||||
listener.options.log('htmlfile message handler error - ' + e.stack);
|
||||
this.listener.options.log('htmlfile message handler error - ' + e.stack);
|
||||
}
|
||||
res.writeHead(200, {'Content-Type': 'text/plain'});
|
||||
res.write('ok');
|
||||
|
||||
@@ -49,7 +49,7 @@ Polling.prototype._onConnect = function(req, res){
|
||||
var msg = qs.parse(body);
|
||||
self._onMessage(msg.data);
|
||||
} catch(e){
|
||||
listener.options.log('xhr-polling message handler error - ' + e.stack);
|
||||
this.listener.options.log('xhr-polling message handler error - ' + e.stack);
|
||||
}
|
||||
res.writeHead(200, headers);
|
||||
res.write('ok');
|
||||
|
||||
Reference in New Issue
Block a user