Class: ServerReadableStream

grpc~ServerReadableStream(call, metadata, deserialize)

new ServerReadableStream(call, metadata, deserialize)

A stream that the server can read from. Used for calls that are streaming from the client side.

Parameters:
Name Type Description
call grpc.internal~Call

The call object to read data with

metadata grpc.Metadata

The request metadata from the client

deserialize grpc~deserialize

Deserialization function for reads

Source:

Extends

Members

cancelled :boolean

Indicates if the call has been cancelled

Type:
  • boolean
Source:

cancelled :boolean

Indicates if the call has been cancelled

Type:
  • boolean
Source:

metadata :grpc.Metadata

The request metadata from the client

Type:
Source:

metadata :grpc.Metadata

The request metadata from the client

Type:
Source:

Methods

getPeer() → {string}

Get the endpoint this call/stream is connected to.

Source:
Returns:

The URI of the endpoint

Type
string

sendMetadata(responseMetadata)

Send the initial metadata for a writable stream.

Parameters:
Name Type Description
responseMetadata Metadata

Metadata to send

Source:

Events

cancelled

Emitted when the call has been cancelled. After this has been emitted, the call's cancelled property will be set to true.

Source: