cancelStream
Stop an in-flight multiplexed stream server-side — abandoning the call does not.
cancelStream(targetStreamId: number, reason?: CancellationReason): Promise<CancelStreamAck>Parameters
ParameterTypeRequired
targetStreamIdintegerrequiredThe stream to cancel.
reasonCancellationReasonoptionalDefaults to ClientUnneeded.
Returns
FieldTypePresence
targetStreamIdintegeralwaysEchoed back.
cancelledAtUnixNanos64-bit integeralwaysWhen the server stopped.
Wire tier only
There is no HTTP equivalent: an HTTP response has no stream id to name, and closing the response body is the whole cancellation story there.
See also
Was this page helpful?