Closed hgiasac closed 2 years ago
subscriptionId, err := client.Subscribe(&query, nil, func(dataValue *json.RawMessage, errValue error) error { // ... // return this error to stop the subscription in the callback return ErrSubscriptionStopped })