Class ClientStreamingCall
Represents an active call that sends a stream of messages and then gets
a single response.
-
Grpc\AbstractCall
-
Grpc\ClientStreamingCall
Methods summary
public
|
#
start( array $metadata = [] )
Start the call.
Parameters
- $metadata
Metadata to send with the call, if applicable
(optional)
|
public
|
#
write( ByteBuffer $data, array $options = [] )
Write a single message to the server. This cannot be called after
wait is called.
Write a single message to the server. This cannot be called after
wait is called.
Parameters
- $data
- The data to write
- $options
An array of options, possible keys:
'flags' => a number (optional)
|
public
array
|
#
wait( )
Wait for the server to respond with data and a status.
Wait for the server to respond with data and a status.
Returns
array [response data, status]
|