code: def manager_ws_uri
      # convert manager uri to websocket
      uri = URI.parse(manager_uri)
      uri.scheme = (uri.scheme == "https" ? "wss" : "ws")
      uri.path = "/wsapi"
      return uri.to_s
    end
docs: Get the WebSocket API URI
  
   @return [String] uri