mirror of
https://github.com/binwiederhier/ntfy.git
synced 2026-05-10 00:08:52 +02:00
[GH-ISSUE #399] Allow for adding/removing topic subscriptions via single WebSocket #305
Labels
No labels
ai-generated
android-app
android-app
android-app
🪲 bug
build
build
dependencies
docs
enhancement
enhancement
🔥 HOT
in-progress 🏃
ios
prio:low
prio:low
pull-request
question
🔒 security
server
server
unified-push
web-app
website
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/ntfy#305
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @mrherman on GitHub (Sep 13, 2022).
Original GitHub issue: https://github.com/binwiederhier/ntfy/issues/399
Currently, you must list all topics to subscribe to when you create a WebSocket. A useful feature would be to allow the client to add/remove subscriptions on an established Web Socket connection. This would allow clients that listen to many topics, especially when not all are known in advance, to use one socket connection instead of many. This has a few usecases:
Allows for better resource management on the client (and server?), since one socket connection and thread can handle multiple topics easily.
Allows for dynamically named topics to be used easily, in particular one-off or topic names that are made after a connection is established.
The ability to unsubscribe topics that aren't needed will ensure the server doesn't have to manage unneeded resources (such as a long list of topic names associated with a web socket), this will be particularly needed if dynamically generated random topic names are frequently used and the server/client are long lived.