The current UI code only works on one tab, and socket connection is also maintained on the same UI thread, This task is to decouple the backend connection to a web worker so the api sever connection can be shared between chrome instances (tabs and windows),
- read and understand the code,
- setup and run your local dev instance
- understand authentication flow
- understand authorization flow
- Pick the correct type of service worker
- refactor in a way that session can be shared and maintained
- unit tests to mock backend communication
extra points
- using web crypto
- paying attention to client-side data safety
- best coding practices and using industry standard design patterns.
- produce high quality patches.
The current UI code only works on one tab, and socket connection is also maintained on the same UI thread, This task is to decouple the backend connection to a web worker so the api sever connection can be shared between chrome instances (tabs and windows),
extra points