Fixed Sails 0.11 / socket.io 1.x compatibility