\GrpcServerStreamingCall

Represents an active call that sends a single message and then gets a stream of reponses

Summary

Methods
Properties
Constants
__construct()
getMetadata()
getPeer()
cancel()
start()
responses()
getStatus()
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(  $arg, array  $metadata = array()) 

Start the call

Parameters

$arg

The argument to send

array $metadata

Metadata to send with the call, if applicable

responses()

responses() : \Grpc\An

Returns

\Grpc\An —

iterator of response values

getStatus()

getStatus() : object

Wait for the server to send the status, and return it.

Returns

object —

The status object, with integer $code, string $details, and array $metadata members

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