M-Welsch / base-webapp

1 stars 0 forks source link

WebSockets - rebuild base-webapp as SPA? #16

Open jackyscript opened 1 year ago

jackyscript commented 1 year ago

After the current displayed page is refreshed or changed by using the navigation bar, an established WebSocket connection is destroyed and created again.

The goal of this issue is to find the answers to the following questions:

  1. WebSocket best practices, what should be the expected life cycle of a connection?
  2. Assuming an already established connection should be maintained at all cost, should practices be considered to ensure this behaviour, e. g. implementing base-webapp as an SPA?
  3. How does the current approach compare to using technologies like Server Sent Events or SharedWorker? Would those be an addition to the current portfolio or do they even represent a better alternative?
jackyscript commented 1 year ago

Further references addressing this issue: