@coasys/ad4m-connect 0.13.0-test-3 → 0.13.0-test-5

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/core.d.ts CHANGED
@@ -1,5 +1,3 @@
1
- import { ApolloClient, NormalizedCacheObject } from "@apollo/client/core";
2
- import { Client as WSClient } from "graphql-ws";
3
1
  import { Ad4mClient, VerificationRequestResult } from "@coasys/ad4m";
4
2
  import { Ad4mConnectOptions, ConnectionStates, AuthStates, RemoteHost, UserInfo } from './types';
5
3
  export default class Ad4mConnect extends EventTarget {
@@ -11,9 +9,8 @@ export default class Ad4mConnect extends EventTarget {
11
9
  connectionState: ConnectionStates;
12
10
  authState: AuthStates;
13
11
  ad4mClient?: Ad4mClient;
14
- wsClient?: WSClient;
15
- apolloClient?: ApolloClient<NormalizedCacheObject>;
16
- activeSocket: WebSocket | null;
12
+ /** HTTP base URL (normalizes legacy ws:// URLs from localStorage) */
13
+ get baseUrl(): string;
17
14
  requestId?: string;
18
15
  requestedRestart: boolean;
19
16
  connectedHost: RemoteHost | null;
@@ -26,12 +23,11 @@ export default class Ad4mConnect extends EventTarget {
26
23
  constructor(options: Ad4mConnectOptions);
27
24
  connect(): Promise<Ad4mClient>;
28
25
  private buildClient;
29
- private createApolloClient;
30
26
  private withTempClient;
31
27
  checkAuth(): Promise<boolean>;
32
28
  disconnect(): Promise<void>;
33
29
  /**
34
- * Subscribe to real-time credit updates via GraphQL subscription.
30
+ * Subscribe to real-time credit updates.
35
31
  * Falls back to polling if the subscription is not supported by the executor.
36
32
  */
37
33
  startCreditSubscription(): void;