Skip to content

Conversation

@mxiao-cll
Copy link
Contributor

When we close a ws connection, we don't clear ws_subscription_active value, so if you keep connect and dis-connect, you would see a large number but actually you only have 1 connection open

@github-actions
Copy link
Contributor

👋 mxiao-cll, thanks for creating this pull request!

To help reviewers, please consider creating future PRs as drafts first. This allows you to self-review and make any final changes before notifying the team.

Once you're ready, you can mark it as "Ready for review" to request feedback. Thanks!

@github-actions
Copy link
Contributor

github-actions bot commented Dec 11, 2025

NPM Publishing labels 🏷️

🟢 This PR has valid version labels and will cause a patch bump.


if (subscriptions.desired.length) {
// Clear wsSubscriptionActive metrics for all active subscriptions
recordWsMessageMetrics(context, [], subscriptions.desired, false)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Side note: This streamHandler is really long and hard to read. Do you think it would make sense to split up into multiple functions?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree, but not sure how to make that happen, I can put in a TODO and create a ticket but I doubt it would be picked up.

I would've done if not code freeze

@mxiao-cll mxiao-cll requested a review from dskloetc December 11, 2025 14:06
@mxiao-cll mxiao-cll merged commit f8c2f53 into main Dec 11, 2025
14 checks passed
@mxiao-cll mxiao-cll deleted the m branch December 11, 2025 14:17
@github-actions
Copy link
Contributor

🚀 Successfully created version bump PR: #644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants