mirror of
https://github.com/Xevion/go-ha.git
synced 2026-01-31 02:24:26 -06:00
Merge pull request #19 from mhagger/too-many-slashes
This commit is contained in:
@@ -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) {
|
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)
|
return ConnectionFromUri(uri, authToken)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user