Merge branch 'cydar-master' into feature/node-auth
This commit is contained in:
commit
4615c6a7f4
|
|
@ -27,9 +27,9 @@ var argv = require('optimist').argv,
|
||||||
|
|
||||||
|
|
||||||
// Handle new WebSocket client
|
// Handle new WebSocket client
|
||||||
new_client = function(client) {
|
new_client = function(client, req) {
|
||||||
var clientAddr = client._socket.remoteAddress, log;
|
var clientAddr = client._socket.remoteAddress, log;
|
||||||
console.log(client.upgradeReq.url);
|
console.log(req ? req.url : client.upgradeReq.url);
|
||||||
log = function (msg) {
|
log = function (msg) {
|
||||||
console.log(' ' + clientAddr + ': '+ msg);
|
console.log(' ' + clientAddr + ': '+ msg);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue