SetupConnection(): remove excess slash in URI

The extra slash was added (presumably by accident) in
https://github.com/saml-dev/gome-assistant/pull/17.
This commit is contained in:
Michael Haggerty
2024-03-23 23:48:10 +01:00
parent 93600c2ed0
commit 261a628542

View File

@@ -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)
}