MCPcopy Create free account
hub / github.com/nhost/nhost / WebsocketURL

Function WebsocketURL

cli/dockercompose/url.go:24–26  ·  view source on GitHub ↗

WebsocketURL returns the ws(s):// variant of URL(host, service, port, useTLS).

(host, service string, port uint, useTLS bool)

Source from the content-addressed store, hash-verified

22
23// WebsocketURL returns the ws(s):// variant of URL(host, service, port, useTLS).
24func WebsocketURL(host, service string, port uint, useTLS bool) string {
25 return strings.Replace(URL(host, service, port, useTLS), "http", "ws", 1)
26}

Callers 1

dashboardFunction · 0.85

Calls 1

URLFunction · 0.85

Tested by

no test coverage detected