Overview

Namespaces

  • Grpc

Classes

  • AbstractCall
  • BaseStub
  • BidiStreamingCall
  • ClientStreamingCall
  • ServerStreamingCall
  • UnaryCall
  • Overview
  • Namespace
  • Class

Class ServerStreamingCall

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

Grpc\AbstractCall
Extended by Grpc\ServerStreamingCall
Namespace: Grpc
Located at ServerStreamingCall.php
Methods summary
public
# start( mixed $data, array $metadata = [], array $options = [] )

Start the call.

Start the call.

Parameters

$data
The data to send
$metadata

Metadata to send with the call, if applicable (optional)

$options

An array of options, possible keys: 'flags' => a number (optional)

public mixed
# responses( )

Returns

mixed
An iterator of response values
public stdClass
# getStatus( )

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

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

Returns

stdClass

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

Methods inherited from Grpc\AbstractCall
__construct(), _deserializeResponse(), _serializeMessage(), cancel(), getMetadata(), getPeer(), getTrailingMetadata(), setCallCredentials()
Properties inherited from Grpc\AbstractCall
$call, $deserialize, $metadata, $trailing_metadata
API documentation generated by ApiGen