I am trying to use socket.io with sails js. I understood that it was pretty straighforward and that sails provided an available socket.io structure out of the box. Howeve When I try to connect to my sails server from a distant client using
io.connect(http://localhost:1337)
It makes my server crash with the message:
/node_modules/express/node_modules/connect/lib/utils.js:216 return 0 == str.indexOf('s:') ^ TypeError: Cannot call method 'indexOf' of undefined
I am probably missing something but I don't understand what.... Any clue about this?
Thanks !