I am writing some offline-first features for my app and I found, that it does not simulate the offline mode for the DDP connection.
Setting in my
chrome dev tools ->
network tab ->
offline checkbox to true, I will only get a connection error for assets (like favicon):
GET http://localhost:7070/collection/favicon.png?v1 net::ERR_INTERNET_DISCONNECTED
…but it does not affect the DDP connection.
Meteor.status() does not change at all and I can just use the pub/sub as if I am online.
I think this has to do something with the built-in proxy but I can’t really find out in the docs how to simulate offline mode here without cancelling the app.
The problem with cancelling the app process is, that on restart the page is force-reloaded and I can’t effectively simulate a data sync on reconnect.
Any experiences to share about this issue?
The WS section in the network tab also shows frequent ongoing ping pong messages, so WS is still running.