GrpcSubscription provides access to gRPC subscriptions from QML. More...
#include <qquickgrpcsubscription_p.h>
GrpcSubscription provides access to gRPC subscriptions from QML.
GrpcSubscription might be used from QML code to receive updates for gRPC server or bidirectional streaming methods. Follwing properties should be provided and can not be empty, to subscribe streaming method:
Client used for subscription.
Controls subscription status. If subscription is active, switch this flag to 'false' to cancel subscription. Switching to 'false' keeps all fields ready to restore subscription.
The name of streaming method that will be used for subscription.
Pointer to argument that will be used for subscription.
Value returned by the subscription (Note that it is the same "return" object passed by the "updated" signal)
The signal notifies about received update for subscription. It provides "return" value ready for use in QML.
The signal notifies about error occured for subscription. Provides GrpcStatus as argument to assigned handler.