socket.io issue using sails.js -
i trying use socket.io sails js. understood pretty straighforward , sails provided available socket.io structure out of box. howeve when try connect sails server distant client using
io.connect(http://localhost:1337)
it makes server crash message:
/node_modules/express/node_modules/connect/lib/utils.js:216 return 0 == str.indexof('s:') ^ typeerror: cannot call method 'indexof' of undefined
i missing don't understand what.... clue this?
thanks !
looks you're missing quotes in io.connect() call, can't imagine client app wouldn't throw syntax error if code written that. verify you've got:
io.connect('http://localhost:1337');
Comments
Post a Comment