@nmtjs/protocol 0.14.2 → 0.14.3
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.
|
@@ -51,8 +51,10 @@ export declare enum ProtocolTransportStatus {
|
|
|
51
51
|
DISCONNECTED = "DISCONNECTED",
|
|
52
52
|
CONNECTING = "CONNECTING"
|
|
53
53
|
}
|
|
54
|
-
export declare abstract class ProtocolTransport extends EventEmitter<ProtocolTransportEventMap> {
|
|
54
|
+
export declare abstract class ProtocolTransport<Options = unknown> extends EventEmitter<ProtocolTransportEventMap> {
|
|
55
|
+
protected options?: Options | undefined;
|
|
55
56
|
status: ProtocolTransportStatus;
|
|
57
|
+
constructor(options?: Options | undefined);
|
|
56
58
|
abstract connect(auth: any, transformer: ProtocolBaseTransformer): Promise<void>;
|
|
57
59
|
abstract disconnect(): Promise<void>;
|
|
58
60
|
abstract call(procedure: string, payload: any, options: ProtocolBaseClientCallOptions, transformer: ProtocolBaseTransformer): Promise<ProtocolClientCall>;
|
package/dist/client/protocol.js
CHANGED
|
@@ -109,7 +109,12 @@ export var ProtocolTransportStatus;
|
|
|
109
109
|
ProtocolTransportStatus["CONNECTING"] = "CONNECTING";
|
|
110
110
|
})(ProtocolTransportStatus || (ProtocolTransportStatus = {}));
|
|
111
111
|
export class ProtocolTransport extends EventEmitter {
|
|
112
|
+
options;
|
|
112
113
|
status = ProtocolTransportStatus.DISCONNECTED;
|
|
114
|
+
constructor(options) {
|
|
115
|
+
super();
|
|
116
|
+
this.options = options;
|
|
117
|
+
}
|
|
113
118
|
}
|
|
114
119
|
export class ProtocolBaseTransformer {
|
|
115
120
|
encodeRPC(_procedure, payload) {
|
package/package.json
CHANGED
|
@@ -19,21 +19,21 @@
|
|
|
19
19
|
}
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
-
"@nmtjs/common": "0.14.
|
|
23
|
-
"@nmtjs/type": "0.14.
|
|
24
|
-
"@nmtjs/core": "0.14.
|
|
22
|
+
"@nmtjs/common": "0.14.3",
|
|
23
|
+
"@nmtjs/type": "0.14.3",
|
|
24
|
+
"@nmtjs/core": "0.14.3"
|
|
25
25
|
},
|
|
26
26
|
"peerDependencies": {
|
|
27
|
-
"@nmtjs/
|
|
28
|
-
"@nmtjs/
|
|
29
|
-
"@nmtjs/
|
|
27
|
+
"@nmtjs/type": "0.14.3",
|
|
28
|
+
"@nmtjs/common": "0.14.3",
|
|
29
|
+
"@nmtjs/core": "0.14.3"
|
|
30
30
|
},
|
|
31
31
|
"files": [
|
|
32
32
|
"dist",
|
|
33
33
|
"LICENSE.md",
|
|
34
34
|
"README.md"
|
|
35
35
|
],
|
|
36
|
-
"version": "0.14.
|
|
36
|
+
"version": "0.14.3",
|
|
37
37
|
"scripts": {
|
|
38
38
|
"build": "tsc",
|
|
39
39
|
"type-check": "tsc --noEmit"
|