But I could not find a possibility to do server side streaming using the call stream handler method. Actually in the issue referenced above, a workaround using bidirectional streaming is used for call stream handlers.
Describe the solution you'd like
In the documentation it says, that:
"When the method return value is defined as stream, the @GrpcStreamCall() decorator provides the function parameter as grpc.ServerDuplexStream"
gRPC Server side streaming using call stream handler
Description
So far(from the Documentation) Nest supports:
@GrpcMethod
@GrpcStreamMethod() or @GrpcStreamCall()
@GrpcStreamMethod()
@GrpcStreamCall()
@GrpcMethod
(Learned here: https://github.com/nestjs/nest/issues/2659#issuecomment-516164027)But I could not find a possibility to do server side streaming using the call stream handler method. Actually in the issue referenced above, a workaround using bidirectional streaming is used for call stream handlers.
Describe the solution you'd like
In the documentation it says, that:
But in the case of server side streaming, we probably need the the ServerWritableStream(https://grpc.github.io/grpc/node/grpc-ServerWritableStream.html).
Teachability, Documentation, Adoption, Migration Strategy
What is the motivation / use case for changing the behavior?
It seems a bit incomplete how the Docs reference Server/Client side streaming with the call stream handler method.