hyperstack-org / hyperstack-org/hyperstack

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

未关闭
#327 0 条评论 0 个 reaction 已指派 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 摘要。