Skip to content
This repository was archived by the owner on Jun 29, 2026. It is now read-only.
This repository was archived by the owner on Jun 29, 2026. It is now read-only.

Reconsider how JS client unsubscribes from subscriptions. #188

Description

@YegorUdovchenko

Spine Web client for JavaScript manages the list of active subscriptions and sends “keep-up” requests to the backend periodically with some interval (20-30 seconds, not sure). When an application that uses Spine Web client unsubscribes from some subscription, a client doesn't send any requests immediately but postpones them to be sent with the next "keep-up" request. This next request usually stays unsent because a user closes an application or signs out. I propose to leave the approach of sending "keep-up" requests as is and send requests that cancel subscriptions immediately.

Also, it would be useful to expand the client's API with a parameter-less method to unsubscribe from all active subscriptions. This would come in hand when a user signs out.

Metadata

Metadata

Assignees

Labels

Client JSIssues related to the `spine-web-client` library

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions