GRPC PHP
1.66.0
|
Represents an active call that sends a single message and then gets a stream of responses. More...
Public Member Functions | |
start ($data, array $metadata=[], array $options=[]) | |
Start the call. More... | |
responses () | |
getStatus () | |
Wait for the server to send the status, and return it. More... | |
getMetadata () | |
Public Member Functions inherited from Grpc\AbstractCall | |
__construct (Channel $channel, $method, $deserialize, array $options=[]) | |
Create a new Call wrapper object. More... | |
getTrailingMetadata () | |
getPeer () | |
cancel () | |
Cancels the call. More... | |
setCallCredentials ($call_credentials) | |
Set the CallCredentials for the underlying Call. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Grpc\AbstractCall | |
_serializeMessage ($data) | |
Serialize a message to the protobuf binary format. More... | |
_deserializeResponse ($value) | |
Deserialize a response value to an object. More... | |
Protected Attributes inherited from Grpc\AbstractCall | |
$call | |
$deserialize | |
$metadata | |
$trailing_metadata | |
Represents an active call that sends a single message and then gets a stream of responses.
Grpc\ServerStreamingCall::getMetadata | ( | ) |
Reimplemented from Grpc\AbstractCall.
Grpc\ServerStreamingCall::getStatus | ( | ) |
Wait for the server to send the status, and return it.
Grpc\ServerStreamingCall::responses | ( | ) |
Grpc\ServerStreamingCall::start | ( | $data, | |
array | $metadata = [] , |
||
array | $options = [] |
||
) |
Start the call.
mixed | $data | The data to send |
array | $metadata | Metadata to send with the call, if applicable (optional) |
array | $options | An array of options, possible keys: 'flags' => a number (optional) |