diff --git a/internal/services/input_datetime.go b/internal/services/input_datetime.go index 9894ba2..5967629 100644 --- a/internal/services/input_datetime.go +++ b/internal/services/input_datetime.go @@ -25,7 +25,6 @@ func (ib InputDatetime) Set(entityId string, value time.Time) { req.ServiceData = map[string]any{ "timestamp": fmt.Sprint(value.Unix()), } - fmt.Println(req) ws.WriteMessage(req, ib.conn, ib.ctx) // TODO: this ain't working for some reason } diff --git a/internal/websocket/websocket.go b/internal/websocket/websocket.go index ff05482..1e4d16d 100644 --- a/internal/websocket/websocket.go +++ b/internal/websocket/websocket.go @@ -23,7 +23,7 @@ type AuthMessage struct { func WriteMessage[T any](msg T, conn *websocket.Conn, ctx context.Context) error { msgJson, err := json.Marshal(msg) - fmt.Println(string(msgJson)) + // fmt.Println(string(msgJson)) if err != nil { return err } @@ -100,7 +100,7 @@ func VerifyAuthResponse(conn *websocket.Conn, ctx context.Context) error { var authResp authResponse json.Unmarshal(msg, &authResp) - log.Println(authResp.MsgType) + // log.Println(authResp.MsgType) if authResp.MsgType != "auth_ok" { return errors.New("invalid auth token") }