mirror of
https://github.com/Xevion/go-ha.git
synced 2025-12-07 13:15:19 -06:00
moved websocket code to websocket package
This commit is contained in:
4
app.go
4
app.go
@@ -7,7 +7,7 @@ import (
|
||||
"time"
|
||||
|
||||
"github.com/saml-dev/gome-assistant/internal/http"
|
||||
"github.com/saml-dev/gome-assistant/internal/setup"
|
||||
ws "github.com/saml-dev/gome-assistant/internal/websocket"
|
||||
"nhooyr.io/websocket"
|
||||
)
|
||||
|
||||
@@ -30,7 +30,7 @@ you can use to register schedules and listeners.
|
||||
*/
|
||||
func App(connString string) app {
|
||||
token := os.Getenv("AUTH_TOKEN")
|
||||
conn, ctx, ctxCancel := setup.SetupConnection(connString)
|
||||
conn, ctx, ctxCancel := ws.SetupConnection(connString)
|
||||
|
||||
httpClient := http.NewHttpClient(connString, token)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user