@dexto/client-sdk 1.2.4 → 1.2.6

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 CHANGED
@@ -1,13 +1,13 @@
1
1
  # Dexto Client SDK
2
2
 
3
- A ultra-lightweight, zero-dependency HTTP/WebSocket client SDK for the Dexto API.
3
+ An ultra-lightweight, zero-dependency HTTP client SDK for the Dexto API.
4
4
 
5
5
  ## Features
6
6
 
7
7
  - 🚀 **Ultra-lightweight**: Only 80KB bundle size
8
8
  - 🔌 **Zero dependencies**: No external libraries
9
9
  - 🌐 **Universal**: Works in Node.js, browsers, and React Native
10
- - 📡 **HTTP + WebSocket**: Full REST API and real-time support
10
+ - 📡 **HTTP + SSE**: Full REST API and real-time SSE streaming support
11
11
  - 🛡️ **TypeScript**: Full type safety
12
12
  - 🔄 **Auto-retry**: Built-in retry logic with exponential backoff
13
13
  - ⚡ **Fast**: Server-side validation, client-side pass-through
@@ -48,7 +48,6 @@ const client = new DextoClient({
48
48
  timeout: 30000, // Optional: Request timeout (ms)
49
49
  retries: 3, // Optional: Retry attempts
50
50
  }, {
51
- enableWebSocket: true, // Optional: Enable WebSocket
52
51
  reconnect: true, // Optional: Auto-reconnect
53
52
  reconnectInterval: 5000, // Optional: Reconnect delay (ms)
54
53
  debug: false // Optional: Debug logging
@@ -64,7 +63,7 @@ const client = new DextoClient({
64
63
 
65
64
  ### Messaging
66
65
  - `sendMessage(input)` - Send message (HTTP)
67
- - `sendMessageStream(input)` - Send message (WebSocket)
66
+ - SSE streaming available via `/api/message-stream` endpoint
68
67
 
69
68
  ### Session Management
70
69
  - `listSessions()` - List all sessions