Skip to content

fix: Separate NATS & LK subscription logic into handler#1004

Merged
jibon57 merged 3 commits intomainfrom
mod
Mar 29, 2026
Merged

fix: Separate NATS & LK subscription logic into handler#1004
jibon57 merged 3 commits intomainfrom
mod

Conversation

@jibon57
Copy link
Copy Markdown
Member

@jibon57 jibon57 commented Mar 29, 2026

No description provided.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request refactors the ConnectLivekit and ConnectNats classes by delegating their responsibilities to two new helper classes: ParticipantMediaManager and SubscriptionHandler. This change improves modularity by separating media track management and NATS subscription logic from the main connection handlers. Feedback was provided regarding a regression in SubscriptionHandler.ts, where the RESP_RENEW_PNM_TOKEN event handler fails to dispatch the addToken action to the Redux store, which could lead to state inconsistencies.

@jibon57 jibon57 merged commit a63fbb1 into main Mar 29, 2026
2 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.

1 participant