Utilities for Nrpc generated code
Perform a request
Perform a request to a method with void
publish a message to a 'noreply' method
See https://github.com/nats-rpc/nrpc/wiki/Specifications#noreply
subscribe to a NoRequest method
Perform a request expecting a streamed reply
See https://github.com/nats-rpc/nrpc/wiki/Specifications#streamed-replies
Cancel a stream request given its marker
The given marker must not have the "stream/" prefix
Send a heartbeat in all the streamed requests. Should be done every seconds or so
Add a marker to a streamRequest
The string "stream/" will be prepended to the marker, so the heartbeat mechanism can still operate.
The "stream/" prefix must be added too for tracking the request with Nats.track.
Returns a nats effect to apply when a request is canceled.
It sends the 'lastbeat' message on stream requests
Nrpc error type