Emulate offline mode in meteor?


#1

Is there a way to disconnect the client from the server and reconnect based on an action(a button maybe) ? I have this project that works both offline and online and I want to be able to go to those mode on demand :slight_smile:

Maybe a custom way to close the current socket to the server ?


#2

Why you donโ€™t use DevTools to simulate slow connection & offline mode?


#3

I donโ€™t want to simulate - I want to be able to close the socket and tell it not to try to reconnect until I say so


#4

Meteor.connection.disconnect()/reconnect()


#5

Life saver :slight_smile: thank you @arunoda