brunch / auto-reload-brunch

Adds automatic browser reloading support to brunch.
88 stars 30 forks source link

Check for wss or ws from the auto-reload.js file #87

Closed clarknelson closed 4 years ago

clarknelson commented 5 years ago

By using this, it correctly tests whether to use WSS or WS protocol when connecting to the web socket. There are a few smaller changes from my beautifier plugin also.

clarknelson commented 5 years ago

I'm still getting an error, but "WebSocket opening handshake timed out" instead of "using ws: instead of wss:"

clarknelson commented 5 years ago

The http/https code is good, but I had to specifically point to the Cert and Key files to get wss to work!

clarknelson commented 4 years ago

Looking at other ways to do this, I believe I have found the correct way to implement.