Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update streaming connection URL when config received #891

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

emmawillis
Copy link
Contributor

No description provided.

Copy link

vercel bot commented Jul 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
js-sdks-web-elements ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 3:27pm
js-sdks-with-provider ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 8, 2024 3:27pm
1 Skipped Deployment
Name Status Preview Comments Updated (UTC)
js-sdks-next-js-page-router ⬜️ Ignored (Inspect) Jul 8, 2024 3:27pm

Copy link
Contributor

@suthar26 suthar26 left a comment

Choose a reason for hiding this comment

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

lgtm, should wait for a sanity check from adam

)
}
}
if (
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be an else if? otherwise it might open a new streaming connection and then immediately reconnect it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

true good point, fixed

@@ -11,6 +11,12 @@ export class StreamingConnection {
this.openConnection()
}

public updateURL(url: string): void {
this.url = url
Copy link
Contributor

Choose a reason for hiding this comment

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

might be better to change this property after you call close()

@emmawillis emmawillis merged commit 9a18422 into main Jul 8, 2024
12 checks passed
@emmawillis emmawillis deleted the TSO-121-js-event-stream branch July 8, 2024 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants