Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement IndexedDB API #117

Open
spaceface777 opened this issue Jan 7, 2020 · 1 comment
Open

Implement IndexedDB API #117

spaceface777 opened this issue Jan 7, 2020 · 1 comment
Labels
0. Branch: TS Something only applicable to the ts-impl branch 1. Type: enhancement Improve an existing feature / idea 2. Importance: medium Medium importance 3. Target: web client Web client related issue

Comments

@spaceface777
Copy link
Contributor

spaceface777 commented Jan 7, 2020

The IndexedDB API is a database inside the browser that can store text, JSON, and binary blobs. It can be used inside the main page as well as web workers and service workers.

Off the top of my head I can think of a few current issues that this API would solve completely:

  • Saving messages locally so that a user can see them if they are offline (this also requires a service worker because we also need to cache the HTML, JS and CSS for the page)
  • Saving user settings locally so that when loading the page we can display a user's previous settings instead of the generic ones
@spaceface777 spaceface777 added 1. Type: enhancement Improve an existing feature / idea 2. Importance: medium Medium importance 3. Target: web client Web client related issue 3. Target: database Something related with the DB 0. Branch: TS Something only applicable to the ts-impl branch labels Jan 7, 2020
@ThePerkinrex
Copy link
Contributor

Yeah, and for storing blobs(profile pictures) it should be more optimised than just a js string

@spaceface777 spaceface777 removed the 3. Target: database Something related with the DB label Jan 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Branch: TS Something only applicable to the ts-impl branch 1. Type: enhancement Improve an existing feature / idea 2. Importance: medium Medium importance 3. Target: web client Web client related issue
Projects
None yet
Development

No branches or pull requests

2 participants