Constructor
new Streams(rpcImpl, requestDelimitedopt, responseDelimitedopt)
Constructs a new Streams service.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Extends
- $protobuf.rpc.Service
Methods
(static) create(rpcImpl, requestDelimitedopt, responseDelimitedopt) → {Streams}
Creates new Streams service using the specified rpc implementation.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
rpcImpl |
$protobuf.RPCImpl |
RPC implementation |
||
requestDelimited |
boolean |
<optional> |
false |
Whether requests are length-delimited |
responseDelimited |
boolean |
<optional> |
false |
Whether responses are length-delimited |
Returns:
Type | Description |
---|---|
Streams |
RPC service. Useful where requests and/or responses are streamed. |
streamCall(request, callback) → {undefined}
Calls StreamCall.
Parameters:
Name | Type | Description |
---|---|---|
request |
enfonica.voice.v1beta1.IStreamCallRequest |
StreamCallRequest message or plain object |
callback |
enfonica.voice.v1beta1.Streams.StreamCallCallback |
Node-style callback called with the error, if any, and StreamCallResponse |
Returns:
Type | Description |
---|---|
undefined |
streamCall(request) → {Promise.<enfonica.voice.v1beta1.StreamCallResponse>}
Calls StreamCall.
Parameters:
Name | Type | Description |
---|---|---|
request |
enfonica.voice.v1beta1.IStreamCallRequest |
StreamCallRequest message or plain object |
Returns:
Type | Description |
---|---|
Promise.<enfonica.voice.v1beta1.StreamCallResponse> |
Promise |
Type Definitions
StreamCallCallback(error, responseopt)
Callback as used by enfonica.voice.v1beta1.Streams#streamCall.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
error |
Error | null |
Error, if any |
|
response |
enfonica.voice.v1beta1.StreamCallResponse |
<optional> |
StreamCallResponse |