Skip to content
Discussion options

You must be logged in to vote

The timeout of the websocket communication is currently not configurable.

I have operations that are a bit long (loading and processing "large" files)

You should offload all heavy work with async/await. NiceGUI (and the underlying FastAPI) are async frameworks. That means, no io-bound or cpu-bound tasks should be directly executed on the main thread but rather be "awaited". See https://fastapi.tiangolo.com/async/ for a good in-depth explanation. Some good examples are

Replies: 4 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@DarakDuVal
Comment options

@rodja
Comment options

rodja Oct 8, 2024
Maintainer

@DarakDuVal
Comment options

@rodja
Comment options

rodja Oct 9, 2024
Maintainer

Answer selected by falkoschindler
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants