GcpPubSubBroker.prototype.request<TReq, TRes>(): Promise<TRes>
Sends a request to a topic and awaits a single correlated reply, providing brokered request-reply (RPC) over the message broker.
A responder registered with respond on the same topic returns
the reply. The call rejects with a RequestTimeoutError when no reply
arrives within options.timeoutMs, and with a RemoteHandlerError when the
responder throws.
Request traffic rides a channel derived from topic, disjoint from plain
publish/subscribe on that same topic — a pub/sub
consumer never observes an RPC request, and vice versa.
message: TReq
The request payload (serialized by the broker adapter)
optional
options: RequestOptions
Reply timeout behavior
Promise<TRes>
The reply payload