hyperstack-org / hyperstack-org/hyperstack

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

オープン
#327 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る
performance
主要言語
JavaScript
スター
538
フォーク
41
PR マージ指標
30日以内にマージされた PR はありません

説明

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.

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。