Skip to content

feat: add subscriber limits to WebSocketPublisher#63

Merged
sieniven merged 9 commits intomainfrom
lucas/add-ws-limit
Jan 22, 2026
Merged

feat: add subscriber limits to WebSocketPublisher#63
sieniven merged 9 commits intomainfrom
lucas/add-ws-limit

Conversation

@limyeechern
Copy link

@limyeechern limyeechern commented Jan 21, 2026

📝 Summary

Add configurable limit to number of subscribers for WebSocketPublisher. Rejects the connection with error message if the connection limit exceeds.

💡 Motivation and Context

Additional layer of restriction to protect service from being flooded with subscription request


✅ I have completed the following steps:

  • Run make lint
  • Run make test
  • Added tests (if applicable)

@limyeechern limyeechern marked this pull request as ready for review January 21, 2026 07:48
@limyeechern limyeechern requested a review from sieniven January 21, 2026 07:56
@sieniven sieniven merged commit 79e67d4 into main Jan 22, 2026
sieniven pushed a commit that referenced this pull request Jan 22, 2026
* feat: add subscriber limit for websocket connections

* fix: change args

* fix: add return error message

* fix: change log level & make lint

* chore: update imports

* chore: increment after check, change log level

* fix: change subscriber limit to u16 from Option

* chore: inline code

* chore: update comments
sieniven added a commit that referenced this pull request Feb 5, 2026
…#373)

* feat: add subscriber limits to WebSocketPublisher (#63)

* feat: add subscriber limit for websocket connections

* fix: change args

* fix: add return error message

* fix: change log level & make lint

* chore: update imports

* chore: increment after check, change log level

* fix: change subscriber limit to u16 from Option

* chore: inline code

* chore: update comments

* Revert default behaviour, dont set default limit on wspub subscriber count

---------

Co-authored-by: lucas <66681646+limyeechern@users.noreply.github.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.

2 participants