From 261a628542744bd5cd2ceea66e9a72e4a6e923ad Mon Sep 17 00:00:00 2001 From: Michael Haggerty Date: Sat, 23 Mar 2024 23:48:10 +0100 Subject: [PATCH] SetupConnection(): remove excess slash in URI The extra slash was added (presumably by accident) in https://github.com/saml-dev/gome-assistant/pull/17. --- internal/websocket/websocket.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/websocket/websocket.go b/internal/websocket/websocket.go index afdf1e4..2eec28b 100644 --- a/internal/websocket/websocket.go +++ b/internal/websocket/websocket.go @@ -50,7 +50,7 @@ func ReadMessage(conn *websocket.Conn, ctx context.Context) ([]byte, error) { } func SetupConnection(ip, port, authToken string) (*websocket.Conn, context.Context, context.CancelFunc, error) { - uri := fmt.Sprintf("ws:///%s:%s/api/websocket", ip, port) + uri := fmt.Sprintf("ws://%s:%s/api/websocket", ip, port) return ConnectionFromUri(uri, authToken) }