Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pool: improve CLOSED message handling #778

Draft
wants to merge 4 commits into
base: master
Choose a base branch
from
Draft

pool: improve CLOSED message handling #778

wants to merge 4 commits into from

Conversation

yukibtc
Copy link
Member

@yukibtc yukibtc commented Feb 21, 2025

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
If the relay sends `["CLOSED", "<sub-id>", ""]` message, treat the subscription as completed.

Ref nostrability/nostrability#167

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
If a REQ asks for IDs and the relay sends all the events, the subscription can be closed as no more events will ever be served.

Ref nostrability/nostrability#167

Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
Signed-off-by: Yuki Kishimoto <yukikishimoto@protonmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant