Send pushes one message into the stream of requests to be consumed by the server. The type of message which can be sent is determined by the Req type parameter of the GenericClientStream receiver.
(m *Req)
| 174 | // server. The type of message which can be sent is determined by the Req type |
| 175 | // parameter of the GenericClientStream receiver. |
| 176 | func (x *GenericClientStream[Req, Res]) Send(m *Req) error { |
| 177 | return x.ClientStream.SendMsg(m) |
| 178 | } |
| 179 | |
| 180 | // Recv reads one message from the stream of responses generated by the server. |
| 181 | // The type of the message returned is determined by the Res type parameter |