Skip to content

Conversation

jibon57
Copy link
Contributor

@jibon57 jibon57 commented Nov 2, 2021

We'll check if status is connecting. In that case wait 1 second before sending message.

Fixed: livekit/livekit#144

await this.ensurePublisherConnected();

if (kind === DataPacket_Kind.LOSSY && this.lossyDC) {
if (this.lossyDC.readyState === 'connecting') {
Copy link
Member

Choose a reason for hiding this comment

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

It'd be better to move this check to ensurePublisherConnected here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, that's better. Thank you!

Copy link
Member

@davidzhao davidzhao left a comment

Choose a reason for hiding this comment

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

looks good!

@davidzhao davidzhao merged commit 8bbbb94 into livekit:main Nov 3, 2021
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.

Data messages not sending in subscribe only mood
2 participants