whio-api-sdk 1.0.207-beta-staging → 1.0.208-beta-staging
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/dist/src/sdk/sdk.d.ts +2 -0
- package/dist/src/sdk/sdk.js +6 -0
- package/package.json +1 -1
- package/src/sdk/sdk.ts +8 -0
package/dist/src/sdk/sdk.d.ts
CHANGED
|
@@ -194,4 +194,6 @@ export declare class ApiSDK extends BaseClient {
|
|
|
194
194
|
onWebSocketEvent(...args: Parameters<WebSocketModule['on']>): void;
|
|
195
195
|
offWebSocketEvent(...args: Parameters<WebSocketModule['off']>): void;
|
|
196
196
|
getWebSocketStats(): import("./types").WebSocketConnectionStats;
|
|
197
|
+
subscribe(...args: Parameters<WebSocketModule['on']>): void;
|
|
198
|
+
unsubscribe(...args: Parameters<WebSocketModule['off']>): void;
|
|
197
199
|
}
|
package/dist/src/sdk/sdk.js
CHANGED
|
@@ -795,4 +795,10 @@ export class ApiSDK extends BaseClient {
|
|
|
795
795
|
getWebSocketStats() {
|
|
796
796
|
return this.websocket.getConnectionStats();
|
|
797
797
|
}
|
|
798
|
+
subscribe(...args) {
|
|
799
|
+
return this.websocket.on(...args);
|
|
800
|
+
}
|
|
801
|
+
unsubscribe(...args) {
|
|
802
|
+
return this.websocket.off(...args);
|
|
803
|
+
}
|
|
798
804
|
}
|
package/package.json
CHANGED
package/src/sdk/sdk.ts
CHANGED
|
@@ -672,4 +672,12 @@ export class ApiSDK extends BaseClient {
|
|
|
672
672
|
public getWebSocketStats() {
|
|
673
673
|
return this.websocket.getConnectionStats();
|
|
674
674
|
}
|
|
675
|
+
|
|
676
|
+
public subscribe(...args: Parameters<WebSocketModule['on']>) {
|
|
677
|
+
return this.websocket.on(...args);
|
|
678
|
+
}
|
|
679
|
+
|
|
680
|
+
public unsubscribe(...args: Parameters<WebSocketModule['off']>) {
|
|
681
|
+
return this.websocket.off(...args);
|
|
682
|
+
}
|
|
675
683
|
}
|