Open pricetula opened 7 years ago
I think I figured it out like this:
Meteor.ddp.on('connected', () => {
console.info('Connected to DDP server.');
});
Meteor.ddp.on('disconnected', () => {
console.info('Connection to DDP server lost.');
});
Another way may be to use RN NetInfo package like this
NetInfo.addEventListener('change', (info) => { clever logic to handle network changed status } );
Meteor.status().status always remains as connected i expected it to go offline when there is no internet connection. Is there a work around to detect connection to server