hyperstack-org / hyperstack-org/hyperstack

delete session connections once the transport connection is made, and queued messages sent

Aperta
#327 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
performance
Lingua principale
JavaScript
Stelle
538
Fork
41
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

When a new browser is opened, a temporary "session" connection is made to hold all messages until the push connection is made (in the case of polled transport this session connection is permanent).

Each session connection has an expires_at attribute, that will cause the temporary connection to be destroyed after that time.

However we should also immediately destroy the connection once the transport is established, and all queued messages are sent. Otherwise any messages sent before the temporary connection is expired will be uselessly queued up. Useless because once the transport is established the messages are simply broadcast.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.