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.
@@ -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
  }
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "whio-api-sdk",
3
- "version": "1.0.207-beta-staging",
3
+ "version": "1.0.208-beta-staging",
4
4
  "main": "dist/index.js",
5
5
  "types": "dist/index.d.ts",
6
6
  "type": "module",
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
  }