Currently the websocket connection is always made with `ws://`. When using a ssl certificate, we should use `wss://` to connect to the websocket.