QGrpcBidirStream Class

The QGrpcBidirStream class provides the interface to access the bidirectional gRPC stream functionality from gRPC client side. More...

Header: #include <QGrpcBidirStream>
CMake: find_package(Qt6 REQUIRED COMPONENTS Grpc)
target_link_libraries(mytarget PRIVATE Qt6::Grpc)
Since: Qt 6.7
Inherits: QGrpcOperation
Status: Technical Preview

Public Functions

virtual ~QGrpcBidirStream() override
(since 6.8) void sendMessage(const QProtobufMessage *message)
void sendMessage(const T &message)

Signals

Detailed Description

Member Function Documentation

[override virtual noexcept] QGrpcBidirStream::~QGrpcBidirStream()

Destroys the QGrpcBidirStream object.

[signal] void QGrpcBidirStream::messageReceived()

The signal is emitted when the stream receives an updated value from server.

[since 6.8] void QGrpcBidirStream::sendMessage(const QProtobufMessage *message)

Serializes message and sends it to the server.

Note: This function has slower message serialization compared to its template counterpart.

This function was introduced in Qt 6.8.

template <typename T> void QGrpcBidirStream::sendMessage(const T &message)

Serializes message and sends it to the server.