Skip to content

improvement(sse-example): copy the query params in the url to the event-stream initialization#2678

Merged
onur-ozkan merged 1 commit intodevfrom
sse-example-enhancement
Nov 1, 2025
Merged

improvement(sse-example): copy the query params in the url to the event-stream initialization#2678
onur-ozkan merged 1 commit intodevfrom
sse-example-enhancement

Conversation

@mariocynicys
Copy link
Copy Markdown
Collaborator

Looks like this was confusing for some (the fact that the query param to specify the client id goes inside the EventSource constructor rather than a query parameters of the open html file on browser's url bar; i.e. u need to edit the html file to change the client id).

This PR just copies the the query params from the url bar into the EventSource constructor, which means we no longer have to edit the html file manually but rather just include any query params we want in the url search bar directly.

Copy link
Copy Markdown

@onur-ozkan onur-ozkan left a comment

Choose a reason for hiding this comment

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

LGTM

@onur-ozkan onur-ozkan merged commit 7f60b34 into dev Nov 1, 2025
21 of 30 checks passed
@onur-ozkan onur-ozkan deleted the sse-example-enhancement branch November 1, 2025 16:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants