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

feat(websocket): Add websocket HTTP redirect #771

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

glmfe
Copy link
Collaborator

@glmfe glmfe commented Feb 21, 2025

Description

  • Handle the 301 status (moved permanently) and redirect the connection to the new host.

Copy link
Collaborator

@david-cermak david-cermak left a comment

Choose a reason for hiding this comment

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

LGTM in general, but

we have to handle old IDFs, i.e. this component needs to work with tcp_transport component which doesnt' support redirects.

we usually do it with feature list macros, which are defined depending on IDF versions (you can check mqtt client component for example: https://github.com/espressif/esp-mqtt/blob/master/include/mqtt_supported_features.h)

@glmfe glmfe force-pushed the feat/add-http-redir branch from d98ecab to 6afad51 Compare February 25, 2025 14:46
 - Handle 301 status (moved permanently) and redirect the connection to the new host.
@glmfe glmfe force-pushed the feat/add-http-redir branch from 6afad51 to 2613138 Compare February 25, 2025 16:35
Copy link
Collaborator

@david-cermak david-cermak left a comment

Choose a reason for hiding this comment

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

changes in this PR LGTM!

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