angular-sails-bind icon indicating copy to clipboard operation
angular-sails-bind copied to clipboard

Connect on a different url?

Open misterch0c opened this issue 9 years ago • 1 comments

I have an angularjs app running on port 3131. This is what I get in the console.

GET XHR http://127.0.0.1:3131/socket.io/ [HTTP/1.1 404 Not Found 2ms]
"
        Socket is trying to reconnect to Sails...
_-|>_-  (attempt #4)

"

So I've tried to change the url but the output stayed the same

io.sails.url = 'http://localhost:1337'; 

Is there a way to achieve this?

Thank you

misterch0c avatar Aug 13 '15 22:08 misterch0c

Yep, that's an issue with autoConnect. Try to diable it: https://github.com/balderdashy/sails.io.js#disable-autoconnect-andor-connect-sockets-manually

aklinkert avatar Oct 26 '15 13:10 aklinkert