beenotung / ts-liveview

Build hybrid SSG and SSR realtime SPA/MPA with Typescript
https://liveviews.cc
BSD 2-Clause "Simplified" License
162 stars 2 forks source link

Reliable connection/ Auto send accumulated offline messages when network resume (WIP) #12

Open hpvd opened 2 years ago

hpvd commented 2 years ago

Regarding topic from readme Reliable connection/ Auto send accumulated offline messages when network resume (WIP)

Maybe its worth to have a look into the tus protocol standard if there are any further/usefull ideas/hints

This protocol is about dealing with the resume of uploads of files and deals with a somehow similar problem.

https://tus.io/

protocol core and options: https://tus.io/protocols/resumable-upload.html

js client: https://github.com/tus/tus-js-client

node server https://github.com/tus/tus-node-server

next version: https://tus.io/blog/2022/02/24/tus-v2.html

beenotung commented 2 years ago

The concept behind tus is interesting, will check their algorithm and see if we can adopt / implement it while keeping the client lightweight. Thanks for the suggestion :)