decent-chat / decent

Open source messaging platform for the modern web
https://meta.decent.chat
GNU General Public License v3.0
21 stars 5 forks source link

Use service workers #6

Open bates64 opened 6 years ago

bates64 commented 6 years ago

https://developer.mozilla.org/en-US/docs/Web/API/Service_Worker_API

Let's make bantisocial run offline! Service workers are the way we do that. They also allow us to trigger notifications and basically pretend we're an actual mobile app.

bates64 commented 6 years ago

Also @towerofnix if we ever end up doing openpgp we'll want to do it in a Worker-- i.e. another thread.

towerofnix commented 6 years ago

The serviceworkers branch has a bunch of work on this (particularly commit c5907ae8fd7a46b7173ec81aca318ac47b9e51a0), but I doubt any of that would merge well with master, plus the client is going to be rewritten (which means we'll need to rewrite the client code on that branch). I'll relabel this appropriately!