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

fix(reload.go): Negotiate WSS connection when server is running HTTPS #2

Merged
merged 1 commit into from
Jun 25, 2024

Conversation

coding-native
Copy link
Contributor

Updated JS injected into HTML templates. Check location.protocol if it is HTTPS, use wss:// in the protocol portion of the conneciton string, else use ws://.

Note: gofmt, or golines appears to have reformatted whitespace in reload.go

Fixes #1

Updated JS injected into HTML templates. Check `location.protocol` if it
is HTTPS, use `wss://` in the protocol portion of the conneciton
string, else use `ws://`.

> Note: `gofmt`, or `golines` appears to have reformatted whitespace in reload.go
@aarol
Copy link
Owner

aarol commented Jun 25, 2024

Hi, thanks for the fix!

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.

Reload does not occur when server is running HTTPS
2 participants