SSE
Server-Sent Events (SSE) is a server push technology based on the HTTP protocol that allows a server to unidirectionally and continuously send event stream data to clients over a persistent connection. Core characteristics include a long-lived connection initiated by the client, unidirectional data transmission in text format, and support for automatic reconnection. SSE is commonly used in web application scenarios requiring server-initiated updates, such as real-time notifications, data push, and log streaming.
Core Facts
SSE or WebSocket protocols can push the model's token-by-token generated content to the front end in real time, enabling streaming responses from the Agent
SSE is a server push technology defined in the HTML5 standard that allows a server to unidirectionally push data to a client over an HTTP connection.
MCP采用客户端-服务器架构,基于标准化的JSON-RPC通信协议
Timeline (last 90 days)
A more mature approach for asynchronous tasks is to switch to Webhook callbacks or server-side push (such as SSE), with the platform proactively notifying when a task completes, fundamentally eliminating polling overhead
Compared with HTTP or SSE transport, MCP's stdio transport has lower latency and requires no open ports, making it naturally suited to local tool scenarios, but it cannot be used across machines — when remote access is needed, you still have to switch to a network-based transport.
The SSE streaming protocol is directly cut off by the Wi-Fi acceleration features of some mobile phone manufacturers, and WeChat's built-in browser blocks the site.
x86's SSE and AVX2 lacked direct equivalent vectorized CLZ/CTZ instructions for a long period of time.
A bare newline appearing directly in the data: line of SSE will break the frame structure; each piece of text should be encoded as JSON to work around this issue.
A single network read() may contain only half an SSE message, so a buffer must be maintained and complete events must be split on \n\n boundaries.
Even with connection multiplexing via SSE, each tool call still requires completing a JSON-RPC-layer handshake and negotiation, which is fundamentally different from directly reusing a database driver connection pool.
MCP leverages SSE to achieve transport-layer multiplexing, allowing multiple logical tool calls to share the same underlying connection, while isolating the Agent runtime and limiting raw socket exposure.
useChat internally encapsulates logic such as streaming communication with AI models, message history maintenance, and loading state tracking, so developers do not need to manually handle SSE or ReadableStream parsing.
Because LLM inference latency is typically on the order of several seconds, synchronous HTTP requests are prone to triggering gateway timeouts, and production deployments often need to introduce task queues (such as Celery or BullMQ) or WebSocket/SSE to maintain persistent connections.
31 more timeline events
All Facts (20)
SSE or WebSocket protocols can push the model's token-by-token generated content to the front end in real time, enabling streaming responses from the Agent
90%VerifiedSSE is a server push technology defined in the HTML5 standard that allows a server to unidirectionally push data to a client over an HTTP connection.
90%VerifiedMCP采用客户端-服务器架构,基于标准化的JSON-RPC通信协议
90%VerifiedMCP协议支持两种传输方式:stdio(标准输入输出)和HTTP SSE(Server-Sent Events)
80%VerifiedSSE(Server-Sent Events)是一种服务器向客户端单向推送数据的HTTP标准,相比WebSocket更轻量,无需握手协议,天然支持断线重连
80%VerifiedRemote MCP services adopt the Streamable HTTP mode, based on HTTP/1.1 or HTTP/2 protocols, with support for Server-Sent Events (SSE).
80%VerifiedCompared to WebSocket, SSE is lighter to implement, natively supports automatic reconnection, and is the superior engineering choice for unidirectional scenarios where only server-side push is needed.
75%VerifiedStreaming responses use the Server-Sent Events (SSE) protocol to push generated tokens to the client one by one in real time, achieving the effect of text appearing character by character.
75%VerifiedOpenAI's streaming responses use the SSE (Server-Sent Events) protocol and send a data: [DONE] signal when the stream ends.
75%VerifiedThe Vercel AI SDK's streaming processing is implemented based on the Web Streams API and Server-Sent Events (SSE).
75%Verified流式传输在技术上通常通过 Server-Sent Events(SSE)或 WebSocket 协议实现,模型生成的token被逐个或分批推送到客户端
65%VerifiedOn x86 architectures, SIMD evolved from SSE (128-bit) to AVX-512 (512-bit), while ARM has NEON and SVE instruction sets
65%VerifiedMainstream APIs from OpenAI, Anthropic, and others all use the SSE protocol to return token streams, with the frontend consuming data via the EventSource API or the fetch ReadableStream interface.
65%UnverifiedDify提供了标准化的RESTful API和SSE(Server-Sent Events)流式接口
90%Unverified在大模型场景中,SSE成为流式输出的主流方案,因为token逐步生成的特性与SSE的事件流模型高度契合
90%UnverifiedMCP Server端使用WebFlux而非传统Spring MVC,主要因为MCP通信依赖SSE(Server-Sent Events)长连接技术
85%UnverifiedClaude Code CLI的API通信层使用SSE(Server-Sent Events)实现流式响应
85%UnverifiedCliRelay对流式输出实现了Server-Sent Events(SSE)协议,将子进程的逐行输出实时推送给客户端
85%Unverifieddify-java-client对SSE(Server-Sent Events)流式响应协议做了封装,支持回调函数或响应式编程方式处理流式数据
85%UnverifiedOpenAI在2020年将SSE引入ChatGPT,使其几乎成为LLM流式输出的行业标准
70%