Class ServerStreamingCall
Represents an active call that sends a single message and then gets a
stream of responses.
-
Grpc\AbstractCall
-
Grpc\ServerStreamingCall
Methods summary
public
|
#
start( mixed $data, array $metadata = [], array $options = [] )
Start the call.
Parameters
- $data
- The data to send
- $metadata
Metadata to send with the call, if applicable
(optional)
- $options
An array of options, possible keys:
'flags' => a number (optional)
|
public
mixed
|
#
responses( )
Returns
mixed An iterator of response values
|
public
stdClass
|
#
getStatus( )
Wait for the server to send the status, and return it.
Wait for the server to send the status, and return it.
Returns
stdClass The status object, with integer $code, string
$details, and array $metadata members
|