You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
enableJsonResponse: false // Use SSE streaming (default)
527
+
enableJsonResponse: false, // Use SSE streaming (default)
528
+
stateless: false // Enable stateless mode for session-less clients
528
529
);
529
530
530
531
$server->listen($transport);
@@ -546,12 +547,27 @@ $transport = new StreamableHttpServerTransport(
546
547
);
547
548
```
548
549
550
+
**Stateless Mode:**
551
+
552
+
For clients that have issues with session management, enable stateless mode:
553
+
554
+
```php
555
+
$transport = new StreamableHttpServerTransport(
556
+
host: '127.0.0.1',
557
+
port: 8080,
558
+
stateless: true // Each request is independent
559
+
);
560
+
```
561
+
562
+
In stateless mode, session IDs are generated internally but not exposed to clients, and each request is treated as independent without persistent session state.
563
+
549
564
**Features:**
550
565
-**Resumable connections** - clients can reconnect and replay missed events
551
566
-**Event sourcing** - all events are stored for replay
552
567
-**JSON mode** - optional JSON-only responses for fast tools
553
568
-**Enhanced session management** - persistent session state
554
569
-**Multiple client support** - designed for concurrent clients
570
+
-**Stateless mode** - session-less operation for simple clients
0 commit comments