Websocket connection based on location protocol
@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.