Skip to content

Fix reception of non-text messages#19

Merged
yukibtc merged 1 commit into
shadowylab:masterfrom
corentincam:fix-non-text-messages-subscribing
Mar 24, 2026
Merged

Fix reception of non-text messages#19
yukibtc merged 1 commit into
shadowylab:masterfrom
corentincam:fix-non-text-messages-subscribing

Conversation

@corentincam

Copy link
Copy Markdown
Contributor

My previous PR (#18) doesn't account for non-text messages (eg. Ping messages). This leads to false errors when receiving those messages.

Now messages that are not Text type are ignored, unless they are Close messages, which immediately close the stream.

The closing part is theoretical because I tested with my personal ntfy server and it doesn't seem to properly close the connection when shutting down. Anyways this should be the proper way to handle it.

@yukibtc yukibtc merged commit a15571a into shadowylab:master Mar 24, 2026
11 checks passed
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.

2 participants