Subscribe on changes!

Websocket connection based on location protocol

avatar
May 2nd 2020
avatar
May 2nd 2020

vite currently doesn't serve over https yet... but I guess this is needed when we do.

avatar
May 2nd 2020

@yyx990803 we know that vite by default serve over HTTP. Under our local dev setup (docker, nginx, ssl etc) we wish to be close to production as much we can, we have this problem with ws and with this pull request we progressively-enhanced websocket connection protocol.

avatar
Jun 23rd 2020

Sorry for the necro-bump, but looks like this feature is no longer present in mainline?

I'm getting issues in a dev setup (mismatched protocols between http and wss), and I can't see socketProtocol in the code I'm pulling down.

Was that intentional? Would you accept it being re-added?