Public Member Functions | |
start ($metadata) | |
read () | |
write ($data) | |
writesDone () | |
getStatus () | |
Public Member Functions inherited from Grpc\AbstractCall | |
__construct (Channel $channel, $method, $deserialize) | |
getMetadata () | |
cancel () | |
Additional Inherited Members | |
Protected Member Functions inherited from Grpc\AbstractCall | |
deserializeResponse ($value) | |
Protected Attributes inherited from Grpc\AbstractCall | |
$call | |
$deserialize | |
$metadata | |
Represents an active call that allows for sending and recieving 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 | ( | $metadata | ) |
Start the call
array | $metadata | Metadata to send with the call, if applicable |
Grpc\BidiStreamingCall::write | ( | $data | ) |
Write a single message to the server. This cannot be called after writesDone is called.
ByteBuffer | $data | The data to write |
Grpc\BidiStreamingCall::writesDone | ( | ) |
Indicate that no more writes will be sent.