Overview

Namespaces

  • Grpc

Classes

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

Class ClientStreamingCall

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

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

Start the call.

Start the call.

Parameters

$metadata

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

public
# write( ByteBuffer $data, array $options = [] )

Write a single message to the server. This cannot be called after wait is called.

Write a single message to the server. This cannot be called after wait is called.

Parameters

$data
The data to write
$options

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

public array
# wait( )

Wait for the server to respond with data and a status.

Wait for the server to respond with data and a status.

Returns

array
[response data, status]
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