You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When you include sails.io.js on page it automatically creates connection. Then when you import angular2-sails it immediately disconnects that previous connection. Why? What is the best way to instantiate the two?
if (io && io.sails) {
if (io && io.socket && io.socket.isConnected) {
io.socket.disconnect();
}
}
The text was updated successfully, but these errors were encountered:
think of using different or changing connections than the local url of your sails app or creating a ios/android app. best way is to disable autoconnect in sails.io.js by passing this parameter or changing it in the template: io.sails.autoConnect = false;
When you include sails.io.js on page it automatically creates connection. Then when you import angular2-sails it immediately disconnects that previous connection. Why? What is the best way to instantiate the two?
The text was updated successfully, but these errors were encountered: