Commit 203bee54 authored by Daniel Gerhardt's avatar Daniel Gerhardt
Browse files

Adjust socket session id retrieval for Socket.IO 1.0

parent 08df9e7e
......@@ -75,9 +75,9 @@ define(
return when(socket, function (socket) {
return request.post(socketApiPrefix + "assign", {
headers: {"Content-Type": "application/json"},
data: JSON.stringify({session: socket.socket.sessionid})
data: JSON.stringify({session: socket.io.engine.id})
}).then(function () {
console.log("Socket.IO: sessionid " + socket.socket.sessionid + " assigned to user");
console.log("Socket.IO: sessionid " + socket.io.engine.id + " assigned to user");
});
});
},
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment