private void updateSSLProtocol() {
    if (ethStatsConnectOptions.getScheme() == null) {
      final boolean updatedSSL = !webSocketConnectOptions.isSsl();
      webSocketConnectOptions.setSsl(updatedSSL);
    }
    webSocketConnectOptions.setPort(
        getWsPort(ethStatsConnectOptions, webSocketConnectOptions.isSsl()));
  }
Switch from ssl to non-ssl and vice-versa if user specified scheme is null. Sets port to 443 or
80 if not specified.
ethereum/ethstats/src/main/java/org/hyperledger/besu/ethstats/EthStatsService.java