diff --git a/internal/home/home.go b/internal/home/home.go index 229b6c3..0f592fa 100644 --- a/internal/home/home.go +++ b/internal/home/home.go @@ -138,6 +138,7 @@ func (h *Home) SubscribeMeasurements(ctx context.Context, hc *http.Client, wsUrl subscriber := graphql.NewSubscriptionClient(wsUrl) subscriber.WithProtocol(graphql.GraphQLWS) subscriber.WithConnectionParams(map[string]interface{}{"token": token}) + subscriber.WithSyncMode(true) subscriber.WithLog(log.Println) subscriber.WithRetryTimeout(time.Second * 5) subscriber.WithWebSocketOptions(graphql.WebsocketOptions{HTTPClient: hc})