SendAndClose pushes the unary response to the client. The type of message which can be sent is determined by the Res type parameter of the clientStreamServer receiver.
(m *Res)
| 223 | // which can be sent is determined by the Res type parameter of the |
| 224 | // clientStreamServer receiver. |
| 225 | func (x *GenericServerStream[Req, Res]) SendAndClose(m *Res) error { |
| 226 | return x.ServerStream.SendMsg(m) |
| 227 | } |
| 228 | |
| 229 | // Recv reads one message from the stream of requests generated by the client. |
| 230 | // The type of the message returned is determined by the Req type parameter |