Class UnaryCall
Represents an active call that sends a single message and then gets a
single response.
-
Grpc\AbstractCall
-
Grpc\UnaryCall
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
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]
|