ClientStream
class ClientStream
ClientStream is the response object from a gRPC client streaming API call.
Methods
__construct(ClientStreamingCall $clientStreamingCall, array $streamingDescriptor = [])
ClientStream constructor.
write(mixed $request)
Write request to the server.
mixed
readResponse()
Read the response from the server, completing the streaming call.
mixed
writeAllAndReadResponse(mixed[] $requests)
Write all data in $dataArray and read the response from the server, completing the streaming call.
ClientStreamingCall|mixed
getClientStreamingCall()
Return the underlying gRPC call object
Details
at line 49
__construct(ClientStreamingCall $clientStreamingCall, array $streamingDescriptor = [])
ClientStream constructor.
at line 59
write(mixed $request)
Write request to the server.
at line 70
mixed
readResponse()
Read the response from the server, completing the streaming call.
at line 87
mixed
writeAllAndReadResponse(mixed[] $requests)
Write all data in $dataArray and read the response from the server, completing the streaming call.
at line 100
ClientStreamingCall|mixed
getClientStreamingCall()
Return the underlying gRPC call object