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.
Learn the concepts, fix things with confidence, and ship real products with AI beside you. No coding background required, and we're with you from the first idea to launch.
Free to start. No card. Leave whenever you want.