GRPC PHP
1.66.0
|
Represents an active call that allows for sending and receiving messages in streams in any order. More...
Public Member Functions | |
start (array $metadata=[]) | |
Start the call. More... | |
read () | |
Reads the next value from the server. More... | |
write ($data, array $options=[]) | |
Write a single message to the server. More... | |
writesDone () | |
Indicate that no more writes will be sent. More... | |
getStatus () | |
Wait for the server to send the status, and return it. More... | |
Public Member Functions inherited from Grpc\AbstractCall | |
__construct (Channel $channel, $method, $deserialize, array $options=[]) | |
Create a new Call wrapper object. More... | |
getMetadata () | |
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 allows for sending and receiving messages in streams in any order.
Grpc\BidiStreamingCall::getStatus | ( | ) |
Wait for the server to send the status, and return it.
Grpc\BidiStreamingCall::read | ( | ) |
Reads the next value from the server.
Grpc\BidiStreamingCall::start | ( | array | $metadata = [] | ) |
Start the call.
array | $metadata | Metadata to send with the call, if applicable (optional) |
Grpc\BidiStreamingCall::write | ( | $data, | |
array | $options = [] |
||
) |
Write a single message to the server.
This cannot be called after writesDone is called.
ByteBuffer | $data | The data to write |
array | $options | An array of options, possible keys: 'flags' => a number (optional) |
Grpc\BidiStreamingCall::writesDone | ( | ) |
Indicate that no more writes will be sent.