mirror of
https://github.com/Xevion/go-ha.git
synced 2026-01-31 06:24:27 -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) {
|
||||
uri := fmt.Sprintf("ws:///%s:%s/api/websocket", ip, port)
|
||||
uri := fmt.Sprintf("ws://%s:%s/api/websocket", ip, port)
|
||||
return ConnectionFromUri(uri, authToken)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user