rocicorp / reflect-draw

Home Page:https://reflect-draw.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Simulating client offline is tricky during development

thezjy opened this issue · comments

  • Using Chrome Devtools' "offline" does not work, because it doesn't work on WebSocket and now everything runs through WebSocket
  • Accessing localhost from another device one the network does not work, because SubtleCrypto thinks it's insecure and will return undefined for all its fields.

For now the only way I can think of is to turn off and then turn on the Miniflare dev server. But it's not the same situation as some client going offline.

Is there a better way?