|
|
@ -217,7 +217,9 @@ var cls = require('../middleware/cls');
|
|
|
|
|
|
|
|
|
|
|
|
return {
|
|
|
|
return {
|
|
|
|
uid: socket.uid,
|
|
|
|
uid: socket.uid,
|
|
|
|
body: {event: event || data[0], params: data[1], payload: payload},
|
|
|
|
params: data[1],
|
|
|
|
|
|
|
|
method: event,
|
|
|
|
|
|
|
|
body: payload,
|
|
|
|
ip: headers['x-forwarded-for'] || socket.ip,
|
|
|
|
ip: headers['x-forwarded-for'] || socket.ip,
|
|
|
|
host: host,
|
|
|
|
host: host,
|
|
|
|
protocol: socket.request.connection.encrypted ? 'https' : 'http',
|
|
|
|
protocol: socket.request.connection.encrypted ? 'https' : 'http',
|
|
|
|