A persistent connection that lets your server push updates to the browser in real time.
A WebSocket is a communication protocol that enables persistent, two-way connections between a browser and a Server. Unlike regular HTTP requests (which are one-and-done), WebSockets stay open, allowing the server to push data to the client instantly.
WebSockets power real-time features: live chat, collaborative editing, stock tickers, and multiplayer games. Supabase Realtime uses WebSockets under the hood. In React, you manage WebSocket connections with useEffect hooks.
WebSockets are more efficient than polling (repeatedly making HTTP requests). They reduce latency and Server load for applications that need constant data updates. Encrypted WebSockets (wss://) protect data in transit.
We give you the skills to build, deploy, and own a full product. Professional stack, AI co-pilot, no coding background required.