Skip to content

Node.js based forum software built for the modern web

hmm ..

Aziz Khouryaac30cb5ec5a
diff --git a/src/socket.io/index.js b/src/socket.io/index.js
index 5706c0b62c..42647fb9a9 100644
--- a/src/socket.io/index.js
+++ b/src/socket.io/index.js
@@ -217,7 +217,9 @@ var cls = require('../middleware/cls');
return {
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,
host: host,
protocol: socket.request.connection.encrypted ? 'https' : 'http',