Methods
# async ensure_channel(service_name, secureopt, options) → {Promise.<*>|*}
Verify the right information exists before calling the ensure_secure_channel method.
Parameters:
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
service_name |
string
|
Name of the service in the directory. | ||
secure |
boolean
|
<optional> |
true | Create a secure channel or not. |
options |
Array
|
Options of the grpc channel. |
Existing channel if found, or newly created channel if not found.
Promise.<*>
|
*