Skip to content

Commit de31d70

Browse files
committed
Add note on web-sockets for fly-replay
1 parent 21ac1bb commit de31d70

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

networking/dynamic-request-routing.html.markerb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -241,6 +241,10 @@ If you replay with `prefer_instance` set, Fly Proxy will attempt to route to thi
241241

242242
In these cases, the request will be delivered to a different Machine that matches the remaining fields in your replay. Along with the other Fly.io-specific headers, a `fly-preferred-instance-unavailable` header will be set containing the ID of the instance that could not be reached.
243243

244+
### Web Socket Considerations
245+
246+
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.
247+
244248
## Alternative Routing Headers
245249

246250
For cases where `fly-replay` isn't suitable, Fly.io provides two alternative request headers:

0 commit comments

Comments
 (0)