Resolves Discovery.gateway.url against the API base and turns it into a WebSocket URL.
Discovery.gateway.url
The API base, for example https://example.com/api/v1.
https://example.com/api/v1
The gateway URL of the discovery (absolute, or relative to the base).
The ws or wss URL without fragment.
ws
wss
TypeError when the result would use clear text off the loopback host.
TypeError
gatewayUrl("https://example.com/api/v1", "/api/v1/gateway"); // "wss://example.com/api/v1/gateway" Copy
gatewayUrl("https://example.com/api/v1", "/api/v1/gateway"); // "wss://example.com/api/v1/gateway"
Resolves
Discovery.gateway.urlagainst the API base and turns it into a WebSocket URL.