@opentap/runner-client 2.2.1-alpha.1.2 → 2.2.1-beta.2
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/BaseClient.d.ts +1 -1
- package/lib/BaseClient.js +2 -2
- package/package.json +1 -1
package/lib/BaseClient.d.ts
CHANGED
|
@@ -19,7 +19,7 @@ export declare class BaseClient {
|
|
|
19
19
|
set headers(value: Headers);
|
|
20
20
|
/** Get timeout */
|
|
21
21
|
get timeout(): number;
|
|
22
|
-
/** Set timeout */
|
|
22
|
+
/** Set timeout in milliseconds. Default is 40000 milliseconds */
|
|
23
23
|
set timeout(value: number);
|
|
24
24
|
constructor(baseSubject: string, options: ConnectionOptions);
|
|
25
25
|
/**
|
package/lib/BaseClient.js
CHANGED
|
@@ -57,7 +57,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from, pack) {
|
|
|
57
57
|
import { ComponentSettingsBase, ComponentSettingsIdentifier, ComponentSettingsListItem, DataGridControl, ErrorResponse, FileDescriptor, ListItemType, ProfileGroup, } from './DTOs';
|
|
58
58
|
import { Empty, ErrorCode, JSONCodec, StringCodec, connect, headers, } from 'nats.ws';
|
|
59
59
|
import { EventEmitter } from 'events';
|
|
60
|
-
var DEFAULT_TIMEOUT =
|
|
60
|
+
var DEFAULT_TIMEOUT = 40000; // default timeout of 40 seconds
|
|
61
61
|
var Events;
|
|
62
62
|
(function (Events) {
|
|
63
63
|
Events["ERROR"] = "error_event";
|
|
@@ -100,7 +100,7 @@ var BaseClient = /** @class */ (function () {
|
|
|
100
100
|
get: function () {
|
|
101
101
|
return this._timeout || DEFAULT_TIMEOUT;
|
|
102
102
|
},
|
|
103
|
-
/** Set timeout */
|
|
103
|
+
/** Set timeout in milliseconds. Default is 40000 milliseconds */
|
|
104
104
|
set: function (value) {
|
|
105
105
|
this._timeout = value;
|
|
106
106
|
},
|