Ploba logo

Find the right AI tool for the job: apps, agents, APIs, MCP servers and datasets, explained plainly.

Get the AI Digest

Discover

  • Explore
  • Top Charts
  • Categories
  • Agents
  • MCP servers
  • Developer tools

Learn & community

  • Learn AI
  • AI Glossary
  • Blog
  • Hackathons
  • People
  • AI Digest

For makers

  • List your tool
  • Docs
  • Claim a listing
  • Advertise
  • Write for us

Company

  • About
  • Careers
  • Changelog
  • Trust
  • Security
  • Contact

© 2026 Ploba. All rights reserved.

  • Privacy
  • Terms
  • Cookies
  • Advertising
  • All policies
llms.txt
AI glossary
Protocols

WebSocket

Also called WebSockets, WS

A protocol that keeps a connection open between a browser and a server so both sides can send messages at any time. It suits live, two-way features such as chat and voice.

What is a WebSocket?

A WebSocket is a persistent, two-way connection between a client, usually a browser, and a server. Once it is open, either side can send data whenever it likes, without the client having to ask again each time. The protocol is defined in RFC 6455.

How does it work?

The connection begins as a normal HTTP request that asks to switch protocols. After the handshake, the same connection carries messages in both directions until one side closes it. Addresses start with ws:// for plain connections or wss://, the encrypted form, which is what you should use in production.

What is a simple example?

A live voice assistant sends microphone audio to a server and receives transcribed text and spoken replies back at the same time over one WebSocket. Because both directions stay open, the conversation feels immediate.

Why does it matter?

Real-time AI features, such as voice agents and collaborative tools, need low-delay traffic in both directions. If the server only needs to stream results to the client, server-sent events are often simpler. The AG-UI protocol can be carried over either approach.

Category
Protocols
Last reviewed
Nov 10, 2026
Also called
WebSockets, WS

Sources

  • MDN: WebSocket API

Related terms

  • ProtocolsServer-Sent EventsA web standard that lets a server push a continuous stream of updates to a browser over one long-lived HTTP connection. It is how many AI chat apps stream answers word by word.
  • ProtocolsAG-UI ProtocolAn open protocol that streams events between an AI agent's backend and a user-facing app, so the interface can show progress, tool use and results as they happen.
  • DevelopmentApplication Programming InterfaceA set of rules that allows different software applications to communicate with each other.
  • Generative AI · STTSpeech-to-TextAI that converts spoken audio into written text, used for transcription, captions, meeting notes and voice assistants.