No Cancel method for steams #545
-
|
In this section of the Manual, https://github.com/timostamm/protobuf-ts/blob/main/MANUAL.md#generic-rpc-clients, it shows a cancel method to shut down a server stream. Upon generating my code, server-streaming-call.d.ts in runtime-rpc does not contain a cancel method for me to use. Am I generating this code incorrectly? Sample: |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 1 reply
-
|
I needed the same functionality. After spending some time on the manual, I found such an opportunity:
So you can do something like this: |
Beta Was this translation helpful? Give feedback.
-
|
I'm pretty sure the docs just need to be updated because, as you point out, there is no |
Beta Was this translation helpful? Give feedback.
-
|
@jcready is correct, the |
Beta Was this translation helpful? Give feedback.
I'm pretty sure the docs just need to be updated because, as you point out, there is no
.cancel()method in the returned type.