Skip to content

Fix WebSocket connect requests #4

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

Merged
merged 2 commits into from
Aug 20, 2022
Merged

Fix WebSocket connect requests #4

merged 2 commits into from
Aug 20, 2022

Conversation

jonian
Copy link
Contributor

@jonian jonian commented Aug 16, 2022

Hi @octavore, this fixes errors on WebSocket connect requests by checking if port is 443 in serveConnect. If there is a better way to check if the connect request is related to TLS, please let me know and I will update my PR. Thanks!

@octavore
Copy link
Owner

Thanks for the PR @jonian! I'll take a look :)

@jonian
Copy link
Contributor Author

jonian commented Aug 17, 2022

Great! Thanks for the quick reply.

I created a small test application where you can reproduce the issue https://github.com/jonian/nuxt-content-test. Run yarn dev and check the console. You will see the WebSocket connection failed errors.

@octavore
Copy link
Owner

The test app to reproduce the issue was very helpful, and I was able to confirm that this PR fixes the issue with secure websockets. Thanks again @jonian!

@octavore octavore merged commit 19ad26a into octavore:master Aug 20, 2022
@jonian jonian deleted the websocket_connect branch August 20, 2022 21:41
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