Skip to content

Add note on web-sockets for fly-replay - #2238

Merged
symkat merged 2 commits into
mainfrom
kate/add-websocket-snippet
Sep 27, 2025
Merged

symkat merged 2 commits into
mainfrom
kate/add-websocket-snippet

Conversation

@symkat

@symkat symkat commented Sep 24, 2025

Copy link
Copy Markdown
Contributor

Summary of changes

Adding a note for web-sockets to clarify the router-app shouldn't negotiate web socket connections itself.


### Web Socket Considerations

It is worth noting that an application returning `fly-replay` headers should not negotiate a web socket upgrade itself. Some frameworks automatically handle this process. The application or instance to which the requests are forwarded should handle the upgrade instead.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The last sentence could be simplified a little, maybe:

Suggested change
It is worth noting that an application returning `fly-replay` headers should not negotiate a web socket upgrade itself. Some frameworks automatically handle this process. The application or instance to which the requests are forwarded should handle the upgrade instead.
It is worth noting that an application returning `fly-replay` headers should not negotiate a web socket upgrade itself. Some frameworks automatically handle this process. Instead, the application or instance receiving the requests should handle the upgrade.

@kcmartin kcmartin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM!

@symkat
symkat merged commit 854a7f4 into main Sep 27, 2025
1 of 2 checks passed
@symkat
symkat deleted the kate/add-websocket-snippet branch September 27, 2025 16:11
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.

2 participants