@aui.io/aui-client 1.2.7 → 1.2.8
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/README.md +5 -5
- package/dist/cjs/Client.js +2 -2
- package/dist/cjs/version.d.ts +1 -1
- package/dist/cjs/version.js +1 -1
- package/dist/esm/Client.mjs +2 -2
- package/dist/esm/version.d.mts +1 -1
- package/dist/esm/version.mjs +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ const userTasks = await client.externalApis.getTasksByUserId({
|
|
|
60
60
|
|
|
61
61
|
```typescript
|
|
62
62
|
// Connect to WebSocket
|
|
63
|
-
const socket = await client.
|
|
63
|
+
const socket = await client.apolloWsSession.connect();
|
|
64
64
|
|
|
65
65
|
// Listen for connection open
|
|
66
66
|
socket.on('open', () => {
|
|
@@ -201,13 +201,13 @@ const response = await client.externalApis.getTasksByUserId({
|
|
|
201
201
|
|
|
202
202
|
### WebSocket API
|
|
203
203
|
|
|
204
|
-
All WebSocket methods are accessed via `client.
|
|
204
|
+
All WebSocket methods are accessed via `client.apolloWsSession.*`
|
|
205
205
|
|
|
206
206
|
#### `connect(args?)` - Establish Connection
|
|
207
207
|
Connect to the WebSocket for real-time communication.
|
|
208
208
|
|
|
209
209
|
```typescript
|
|
210
|
-
const socket = await client.
|
|
210
|
+
const socket = await client.apolloWsSession.connect({
|
|
211
211
|
headers?: Record<string, string>, // Additional headers
|
|
212
212
|
debug?: boolean, // Enable debug mode (default: false)
|
|
213
213
|
reconnectAttempts?: number // Max reconnect attempts (default: 30)
|
|
@@ -278,7 +278,7 @@ async function searchProducts(userId: string, query: string) {
|
|
|
278
278
|
console.log('Created task:', taskId);
|
|
279
279
|
|
|
280
280
|
// Step 2: Connect to WebSocket
|
|
281
|
-
const socket = await client.
|
|
281
|
+
const socket = await client.apolloWsSession.connect();
|
|
282
282
|
|
|
283
283
|
// Step 3: Set up event handlers
|
|
284
284
|
socket.on('open', () => {
|
|
@@ -485,7 +485,7 @@ const client = new ApolloClient({
|
|
|
485
485
|
});
|
|
486
486
|
|
|
487
487
|
// Or pass it per-request
|
|
488
|
-
const socket = await client.
|
|
488
|
+
const socket = await client.apolloWsSession.connect({
|
|
489
489
|
headers: {
|
|
490
490
|
'x-network-api-key': 'API_KEY_YOUR_KEY_HERE'
|
|
491
491
|
}
|
package/dist/cjs/Client.js
CHANGED
|
@@ -45,8 +45,8 @@ class ApolloClient {
|
|
|
45
45
|
"x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
|
|
46
46
|
"X-Fern-Language": "JavaScript",
|
|
47
47
|
"X-Fern-SDK-Name": "@aui.io/aui-client",
|
|
48
|
-
"X-Fern-SDK-Version": "1.2.
|
|
49
|
-
"User-Agent": "@aui.io/aui-client/1.2.
|
|
48
|
+
"X-Fern-SDK-Version": "1.2.8",
|
|
49
|
+
"User-Agent": "@aui.io/aui-client/1.2.8",
|
|
50
50
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
51
51
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
52
52
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/cjs/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.8";
|
package/dist/cjs/version.js
CHANGED
package/dist/esm/Client.mjs
CHANGED
|
@@ -9,8 +9,8 @@ export class ApolloClient {
|
|
|
9
9
|
"x-network-api-key": _options === null || _options === void 0 ? void 0 : _options.networkApiKey,
|
|
10
10
|
"X-Fern-Language": "JavaScript",
|
|
11
11
|
"X-Fern-SDK-Name": "@aui.io/aui-client",
|
|
12
|
-
"X-Fern-SDK-Version": "1.2.
|
|
13
|
-
"User-Agent": "@aui.io/aui-client/1.2.
|
|
12
|
+
"X-Fern-SDK-Version": "1.2.8",
|
|
13
|
+
"User-Agent": "@aui.io/aui-client/1.2.8",
|
|
14
14
|
"X-Fern-Runtime": core.RUNTIME.type,
|
|
15
15
|
"X-Fern-Runtime-Version": core.RUNTIME.version,
|
|
16
16
|
}, _options === null || _options === void 0 ? void 0 : _options.headers) });
|
package/dist/esm/version.d.mts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const SDK_VERSION = "1.2.
|
|
1
|
+
export declare const SDK_VERSION = "1.2.8";
|
package/dist/esm/version.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const SDK_VERSION = "1.2.
|
|
1
|
+
export const SDK_VERSION = "1.2.8";
|