Guarantee that endpoints.gateway in the instance discovery document does not contain query params

(#3922) Feature Open: Under consideration api

Current problem

The Gateway connecting stage says:
Read endpoints.gateway from the instance discovery document and open a WebSocket to it with ?v=1&encoding=json.
Since the documentation says endpoints.gateway contains a "URL", quote "The main Gateway WebSocket URL" (https://docs.fluxer.app/http-api/instance/#instance-endpoints-object), it's not guaranteed that it doesn't contain any query parameters. Parsing like separator = "&" if "?" in gateway else "?" (not sure if this catches all cases) or proper URL parsing is required to construct a proper URL with the required query parameters.

Proposed change

It seems that the "The main Gateway WebSocket URL" is always URL without query parameters. If this could be guaranteed in the docs, that would be great, so URL parsing is not necessary.

Comments

Sign in with Fluxer to comment and vote.

No comments yet.