Skip to content

Commit 40fd3f5

Browse files
committed
Make SSE stream management slightly more explicit for tasks
1 parent f075d16 commit 40fd3f5

File tree

1 file changed

+3
-1
lines changed
  • docs/specification/draft/basic/utilities

1 file changed

+3
-1
lines changed

docs/specification/draft/basic/utilities/tasks.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -412,7 +412,9 @@ stateDiagram-v2
412412

413413
With the Streamable HTTP (SSE) transport, servers often close SSE streams after delivering a response message, which can lead to ambiguity regarding the stream used for subsequent task messages.
414414

415-
Implementations have flexibility in how they manage SSE streams during task polling and result retrieval.
415+
Servers can handle this by enqueueing messages to the client to side-channel task-related messages alongside other responses.
416+
417+
Servers have flexibility in how they manage SSE streams during task polling and result retrieval, and clients **SHOULD** expect messages to be delivered on any SSE stream, including the HTTP GET stream.
416418
One possible approach is maintaining an SSE stream on `tasks/result` (see notes on the `input_required` status).
417419
Where possible, servers **SHOULD NOT** upgrade to an SSE stream in response to a `tasks/get` request, as the client has indicated it wishes to poll for a result.
418420

0 commit comments

Comments
 (0)