You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
github-actionsbot
changed the title
[websocket]: ability to read connection upgrade headers
[websocket]: ability to read connection upgrade headers (IDFGH-14252)
Dec 17, 2024
Is your feature request related to a problem?
ESP WebSocket-client instances are unable to use cookie-based sticky sessions, because there is no interface to extract the upgrade response headers.
Here's an example of what we'd like to use: https://docs.aws.amazon.com/prescriptive-guidance/latest/load-balancer-stickiness/alb-cookies-stickiness.html, which tries to set
lb_cookie
to remember which backend server the device connected to, but there's no way for the client to read the value of theSet-Cookie: lb_cookie=<server-index-value>
header.Describe the solution you'd like.
When connecting, I'd like the ability to iterate HTTP response headers during the WEBSOCKET_EVENT_CONNECTED event handler.
Once I have this, I can save out the
lb_cookie
for use in future reconnections.Describe alternatives you've considered.
No response
Additional context.
No response
The text was updated successfully, but these errors were encountered: