WebSocket
WebSocket is a TCP-based network communication protocol that provides a full-duplex, persistent connection channel between a client and a server. Unlike the traditional HTTP request-response model, once a WebSocket connection is established, both parties can push data at any time without repeated handshakes, significantly reducing communication latency and overhead. It is widely used in scenarios requiring low-latency bidirectional communication, such as real-time chat, online gaming, and live financial data feeds.
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
WebSocket is a protocol for full-duplex communication over a single TCP connection, allowing the server to proactively push data to the client.
The WebSocket protocol was standardized by the IETF as RFC 6455 in 2011.
Timeline (last 90 days)
The end-to-end latency of cloud browsers will be higher than running locally, because remotely driving a browser via WebSocket introduces extra network round trips.
Gologin Cloud Browser supports the two mainstream browser automation frameworks Playwright and Puppeteer via WebSocket.
The local Node server acts as the WebSocket server, and the WhatsApp script and the Claude.ai script act as clients that each establish a persistent connection to it.
The WhatsApp script only listens to whitelisted chats and ignores groups and historical messages; when a new message arrives, it sends it to the local server via WebSocket.
The engineering implementation of a 'two-way channel' usually takes two forms: in-process integration (LLM call logic written into game scripts, reading and writing world state through the engine's scripting API) and out-of-process communication (the game side opens a local service or message channel such as HTTP or WebSocket, and the agent runs as a separate process requesting state and issuing commands).
The Battledrones project previously or concurrently had an audio-channel-based online multiplayer approach, and v14 emphasizes using the non-audio WebSocket mode.
In multiplayer games, transmitting game state data over audio channels such as WebRTC is inferior to a dedicated WebSocket channel in bandwidth, latency, and data reliability.
Streaming recognition typically maintains a long connection via WebSocket and is suitable for interactive scenarios such as voice input methods and real-time subtitles; asynchronous recognition returns results via polling or webhooks and is better suited to offline scenarios such as recorded notes and meeting minutes.
In long tasks, simple polling is inefficient, and SSE or WebSocket are more common choices for streaming progress updates, but backpressure and reconnection must be handled to avoid duplicate or out-of-order events.
Pokémon Showdown supports programmatic battles via a WebSocket interface and provides an official `pokemon-showdown` npm package as well as client libraries for languages such as Python.
40 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%VerifiedWebSocket is a protocol for full-duplex communication over a single TCP connection, allowing the server to proactively push data to the client.
90%VerifiedThe WebSocket protocol was standardized by the IETF as RFC 6455 in 2011.
80%VerifiedSSE(Server-Sent Events)是一种服务器向客户端单向推送数据的HTTP标准,相比WebSocket更轻量,无需握手协议,天然支持断线重连
80%VerifiedThe OpenAI Realtime API supports WebSocket real-time streaming and can support advanced conversational features such as interruption, emotion awareness, and multi-turn context retention.
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%VerifiedThe WebSocket protocol establishes a persistent bidirectional communication channel through which the server can proactively push data to the client, with latency as low as milliseconds.
70%VerifiedWebSocket establishes a persistent full-duplex TCP connection through a single handshake, allowing the client and server to push data to each other at any time over the same connection.
65%Verified流式传输在技术上通常通过 Server-Sent Events(SSE)或 WebSocket 协议实现,模型生成的token被逐个或分批推送到客户端
65%VerifiedA persistent connection is established via WebSocket between the Browser Tools MCP browser extension and the MCP Server.
65%UnverifiedCDP(Chromium DevTools Protocol)是Google为Chromium内核浏览器设计的底层调试与自动化协议,基于WebSocket通信
95%UnverifiedWebSocket每个数据帧仅需2-14字节的头部信息
90%UnverifiedTalkToFigma通过WebSocket与本地的MCP服务器保持实时通信
90%Unverified龙虾Agent的微信远控通道基于WebSocket长连接的消息中继机制,无需公网IP或端口映射即可在NAT环境下工作
80%UnverifiedPulse机制在技术实现上通常依赖WebSocket长连接、消息队列(如Apache Kafka)或操作系统级别的文件系统监听(如Linux的inotify机制)
75%UnverifiedA sideband connection is an event channel in the Realtime API that is independent of the main WebSocket session and is used to send outbound control-type events such as transcription text and tool-call status.
70%UnverifiedWebSocket provides bidirectional full-duplex communication, making it suitable for complex Agent conversation scenarios that require frequent interaction.
60%UnverifiedCompared to HTTP polling solutions, WebSocket can reduce invalid network requests by more than 90%.
60%Unverified相比轮询方案,WebSocket在语音流传输场景下的延迟通常可降低50%以上
60%UnverifiedThe project supports both WebSocket and MQTT+UDP communication protocols simultaneously.
60%