tus / tus-js-client

A pure JavaScript client for the tus resumable upload protocol
https://tus.io/
MIT License
2.09k stars 314 forks source link

Create a standard tus client model #355

Open Acconut opened 2 years ago

Acconut commented 2 years ago
Acconut commented 2 years ago

First attempt at a state transition chart:

tus-client-states drawio

Acconut commented 11 months ago

Public interface for controlling uploads:

koppor commented 10 months ago

Maybe, XState helps here? Checking their tutorial and that they can invoke services, I thought, it could be a good thing to use?

Acconut commented 10 months ago

XState is a promising library for JavaScript, thanks for sharing! This issue is also intended to look into ways how we can build state machines that are shared across different programming languages. That could allow reusing the state machines in our JavaScript, Python, Swift and Java clients without the need of re-implementing the same logic everywhere. However, I haven't spent enough time on it yet to see if such a tooling already exists.