@tdxvolt/volt-client-grpc 0.11.5 → 0.11.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.cjs +2 -2
- package/package.json +1 -1
- package/src/volt-client.js +2 -2
package/lib/index.cjs
CHANGED
|
@@ -1800,7 +1800,7 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
1800
1800
|
}
|
|
1801
1801
|
|
|
1802
1802
|
if (this.isRemote) {
|
|
1803
|
-
if (!this.
|
|
1803
|
+
if (!this._voltConfig?.relay?.address) {
|
|
1804
1804
|
throw new Error(
|
|
1805
1805
|
"Remote connection enabled but no Relay address - have you called start()?",
|
|
1806
1806
|
);
|
|
@@ -1810,7 +1810,7 @@ class VoltClient extends EventEmitter__default["default"] {
|
|
|
1810
1810
|
return createClient(
|
|
1811
1811
|
this._grpc,
|
|
1812
1812
|
serviceDescriptors,
|
|
1813
|
-
this.
|
|
1813
|
+
this._voltConfig.relay.address,
|
|
1814
1814
|
this._credential,
|
|
1815
1815
|
false,
|
|
1816
1816
|
service.volt_id,
|
package/package.json
CHANGED
package/src/volt-client.js
CHANGED
|
@@ -231,7 +231,7 @@ export class VoltClient extends EventEmitter {
|
|
|
231
231
|
}
|
|
232
232
|
|
|
233
233
|
if (this.isRemote) {
|
|
234
|
-
if (!this.
|
|
234
|
+
if (!this._voltConfig?.relay?.address) {
|
|
235
235
|
throw new Error(
|
|
236
236
|
"Remote connection enabled but no Relay address - have you called start()?",
|
|
237
237
|
);
|
|
@@ -241,7 +241,7 @@ export class VoltClient extends EventEmitter {
|
|
|
241
241
|
return createGrpcClient(
|
|
242
242
|
this._grpc,
|
|
243
243
|
serviceDescriptors,
|
|
244
|
-
this.
|
|
244
|
+
this._voltConfig.relay.address,
|
|
245
245
|
this._credential,
|
|
246
246
|
false,
|
|
247
247
|
service.volt_id,
|