Fix bug caused by upgrade to ws version 3
This commit is contained in:
parent
f3a0ce06a9
commit
3e17187216
|
@ -26,9 +26,9 @@ var argv = require('optimist').argv,
|
|||
|
||||
|
||||
// Handle new WebSocket client
|
||||
new_client = function(client) {
|
||||
new_client = function(client, req) {
|
||||
var clientAddr = client._socket.remoteAddress, log;
|
||||
console.log(client.upgradeReq.url);
|
||||
console.log(req.url);
|
||||
log = function (msg) {
|
||||
console.log(' ' + clientAddr + ': '+ msg);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue