\GrpcClientStreamingCall

Represents an active call that sends a stream of messages and then gets a single response.

Summary

Methods
Properties
Constants
__construct()
getMetadata()
getPeer()
cancel()
start()
wait()
No public properties found
No constants found
deserializeResponse()
$call
$deserialize
$metadata
N/A
No private methods found
No private properties found
N/A

Properties

$call

$call : 

Type

$deserialize

$deserialize : 

Type

$metadata

$metadata : 

Type

Methods

__construct()

__construct(\Grpc\Channel  $channel, string  $method, callback  $deserialize,   $timeout = false) 

Create a new Call wrapper object.

Parameters

\Grpc\Channel $channel

The channel to communicate on

string $method

The method to call on the remote server

callback $deserialize

A callback function to deserialize the response

$timeout

getMetadata()

getMetadata() : \Grpc\The

Returns

\Grpc\The —

metadata sent by the server.

getPeer()

getPeer() : string

Returns

string —

The URI of the endpoint.

cancel()

cancel() 

Cancels the call

start()

start(\Grpc\Traversable  $arg_iter, array  $metadata = array()) 

Start the call.

Parameters

\Grpc\Traversable $arg_iter

The iterator of arguments to send

array $metadata

Metadata to send with the call, if applicable

wait()

wait() : \Grpc\[response

Wait for the server to respond with data and a status

Returns

\Grpc\[response —

data, status]

deserializeResponse()

deserializeResponse(string  $value) : \Grpc\The

Deserialize a response value to an object.

Parameters

string $value

The binary value to deserialize

Returns

\Grpc\The —

deserialized value