0xFable icon indicating copy to clipboard operation
0xFable copied to clipboard

Detect offline client

Open norswap opened this issue 2 years ago • 13 comments

Display some info if we detect we can't get online.

The simplest thing is to use navigator.online however this is only false if the LAN is unreachable. Meaning the internet might be down but local networking up and this would still be true.

Another option to improve on this is to detect a RPC query that fails all its allotted retries.

This should be implemented as a modal on the home page and play page.

norswap avatar Jun 03 '23 15:06 norswap

I want to take this issue, but running this project is a hassle. i have followed the read me strictly but the make anvil command not running getting an error. is there any other guide to running this project.

Blazing-Mike avatar Feb 16 '24 01:02 Blazing-Mike

There isn't, but instead of complaining, a more productive approach would be to report to error so we can try to diagnose it.

Since all make anvil does is run anvil it probably means either make or anvil are not installed correctly. You can try running make --version or anvil --version to confirm.

I don't mean to be rude, but I think getting stuck at this stage maybe indicates you might not be a good fit for this project!

norswap avatar Feb 16 '24 08:02 norswap

Thank you, i do not take offense either, i am just genuinely trying to contribute to this project as part of the ODHack and probably get experience with web3 projects.

I finally got make anvil running but when i run make webapp i have and error that says Module not found: Can't resolve 'src/generated'. I check the src folder and saw that there's no src/generated file. so i am confused what command during the setup creates this file.

EDIT: So i finally figured this out, i just missed some details hidden in the steps/docs. i take more time to understand the project architecture (frontend in particular) Cc: @norswap

Blazing-Mike avatar Feb 18 '24 17:02 Blazing-Mike

All good! Feel free to work on this issue!

norswap avatar Feb 19 '24 16:02 norswap

I’d like to work on this.

knownothing10 avatar Dec 11 '24 13:12 knownothing10

Can I take care of this issue?

ryzen-xp avatar Dec 20 '24 10:12 ryzen-xp

Can I be assigned to this?

VyuduInc avatar Dec 29 '24 03:12 VyuduInc

I'd like to take this issue.

sir-mills avatar Jan 03 '25 11:01 sir-mills

Would love to contribute here , given my experience as a JavaScript and Typescript developer working in the Web3 space for over a year.

PrathamJha1 avatar Jan 04 '25 09:01 PrathamJha1

I’d like to help with this.

chiscookeke11 avatar Jan 22 '25 16:01 chiscookeke11

I’d like to help with this.

Verifieddanny avatar Jan 25 '25 13:01 Verifieddanny

Hi,

I’ll use navigator.onLine to check basic connectivity and implement a retry mechanism with Axios or Fetch API for failed RPC queries. A modal will be displayed on the home and play pages when connectivity is lost. The modal will clearly inform users of any internet issues.

Richardudeh4 avatar Jan 27 '25 00:01 Richardudeh4

Could I try solving this?

wengDavo avatar Jan 29 '25 23:01 wengDavo

Mind if I try this one?

abhishek-nexgen-dev avatar Feb 05 '25 13:02 abhishek-nexgen-dev