Learn AI Math

WebSocket

What is WebSocket?

In one sentence: A WebSocket is a connection that stays open so a client and server can send messages back and forth instantly in both directions.

Unlike normal web requests, which open and close each time, WebSockets keep a live line open. They are used for real-time voice and chat AI.

What does WebSocket look like?

A live voice assistant streaming your speech to the server and receiving spoken replies over a WebSocket.

Why does WebSocket matter?

WebSockets enable fast, two-way real-time AI conversations.

Last updated · Fact-checked by The AI Math

Linking to this page from a lesson or article?

Like this explanation? Get one every week.

The AI Math newsletter turns confusing AI news into plain English. No hype, no jargon walls.