Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/ts-node-examples/init-example/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/typescript/package.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 5 additions & 4 deletions sdk/typescript/src/client/AgentFieldClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,19 @@ import type {
} from '../types/agent.js';

// Shared HTTP agents with connection pooling to prevent socket exhaustion
// maxTotalSockets limits total connections across all hosts (IPv4 + IPv6)
const httpAgent = new http.Agent({
keepAlive: true,
maxSockets: 10,
maxFreeSockets: 5,
timeout: 30000
maxTotalSockets: 50,
maxFreeSockets: 5
});

const httpsAgent = new https.Agent({
keepAlive: true,
maxSockets: 10,
maxFreeSockets: 5,
timeout: 30000
maxTotalSockets: 50,
maxFreeSockets: 5
});

export interface ExecutionStatusUpdate {
Expand Down
9 changes: 5 additions & 4 deletions sdk/typescript/src/did/DidClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ import https from 'node:https';
import axios, { type AxiosInstance } from 'axios';

// Shared HTTP agents with connection pooling to prevent socket exhaustion
// maxTotalSockets limits total connections across all hosts (IPv4 + IPv6)
const httpAgent = new http.Agent({
keepAlive: true,
maxSockets: 10,
maxFreeSockets: 5,
timeout: 30000
maxTotalSockets: 50,
maxFreeSockets: 5
});

const httpsAgent = new https.Agent({
keepAlive: true,
maxSockets: 10,
maxFreeSockets: 5,
timeout: 30000
maxTotalSockets: 50,
maxFreeSockets: 5
});

// ============================================================================
Expand Down
9 changes: 5 additions & 4 deletions sdk/typescript/src/mcp/MCPClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,19 @@ import type { MCPServerConfig } from '../types/agent.js';
import type { MCPTool } from '../types/mcp.js';

// Shared HTTP agents with connection pooling to prevent socket exhaustion
// maxTotalSockets limits total connections across all hosts (IPv4 + IPv6)
const httpAgent = new http.Agent({
keepAlive: true,
maxSockets: 10,
maxFreeSockets: 5,
timeout: 30000
maxTotalSockets: 50,
maxFreeSockets: 5
});

const httpsAgent = new https.Agent({
keepAlive: true,
maxSockets: 10,
maxFreeSockets: 5,
timeout: 30000
maxTotalSockets: 50,
maxFreeSockets: 5
});

export class MCPClient {
Expand Down
9 changes: 5 additions & 4 deletions sdk/typescript/src/memory/MemoryClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,19 @@ import https from 'node:https';
import type { MemoryScope } from '../types/agent.js';

// Shared HTTP agents with connection pooling to prevent socket exhaustion
// maxTotalSockets limits total connections across all hosts (IPv4 + IPv6)
const httpAgent = new http.Agent({
keepAlive: true,
maxSockets: 10,
maxFreeSockets: 5,
timeout: 30000
maxTotalSockets: 50,
maxFreeSockets: 5
});

const httpsAgent = new https.Agent({
keepAlive: true,
maxSockets: 10,
maxFreeSockets: 5,
timeout: 30000
maxTotalSockets: 50,
maxFreeSockets: 5
});

export interface MemoryRequestMetadata {
Expand Down