Skip to content

Node.js based forum software built for the modern web

hmm-2 ...

Aziz Khoury3dc63438debb
diff --git a/src/socket.io/index.js b/src/socket.io/index.js
index 42647fb9a9..fc97f7cc87 100644
--- a/src/socket.io/index.js
+++ b/src/socket.io/index.js
@@ -218,7 +218,7 @@ var cls = require('../middleware/cls');
return {
uid: socket.uid,
params: data[1],
- method: event,
+ method: event || data[0],
body: payload,
ip: headers['x-forwarded-for'] || socket.ip,
host: host,