You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the motivation / use case for changing the behavior?
I've spent a half a day trying to figure out why streams woudn't work.
One of the reasons for that is because these decorators names are deceiving and I was trying to implement full-duplex communication when I actually only needed one way communication with streams.
Another good improvement might be: adding a note about using the "stream" keyword on protobuf files when dealing with "Subject Strategy".
The text was updated successfully, but these errors were encountered:
This has been discussed in the past and we decided to not introduce this breaking change in the foreseeable future.
If you think your request could live outside Nest's scope, we'd encourage you to collaborate with the community on publishing it as an open source package.
Is there an existing issue that is already proposing this?
Is your feature request related to a problem? Please describe it
As of now, we got 2 decorators for servers:
@GrpcMethod()
@GrpcStreamMethod()
This second decorator might suggest this is the only option for using streams.
Although, this is not the case. Me and other people have learnt it only after a searching on the web.
Describe the solution you'd like
I would like to propose renaming the full-duplex corresponding decorator:
@GrpcBidirectionalMethod()
@GrpcFullDuplexMethod()
or renaming the 2 different decorators:
@GrpcSimplexMethod()
@GrpcFullDuplexMethod()
or...
@GrpcOneWayChannel()
@GrpcTwoWayChannel()
Teachability, documentation, adoption, migration strategy
Users would simply adopt the new names.
What is the motivation / use case for changing the behavior?
I've spent a half a day trying to figure out why streams woudn't work.
One of the reasons for that is because these decorators names are deceiving and I was trying to implement full-duplex communication when I actually only needed one way communication with streams.
Another good improvement might be: adding a note about using the "stream" keyword on protobuf files when dealing with "Subject Strategy".
The text was updated successfully, but these errors were encountered: