A very common reason is a wrong site baseUrl configuration.\n

Current configured baseUrl = / (default value)\n

We suggest trying baseUrl = \n\n';var e=document.getElementById("__docusaurus-base-url-issue-banner-suggestion-container"),s=window.location.pathname,r="/"===s.substr(-1)?s:s+"/";e.innerHTML=r}}window.__DOCUSAURUS_INSERT_BASEURL_BANNER=!0,document.addEventListener("DOMContentLoaded",maybeInsertBanner)

Skip to main content
Socket.IO logoSocket.IO logo

Socket.IO

Bidirectional and low-latency communication for every platform

Performant

In most cases, the connection will be established with WebSocket, providing a low-overhead communication channel between the server and the client.

Reliable

Rest assured! In case the WebSocket connection is not possible, it will fall back to HTTP long-polling. And if the connection is lost, the client will automatically try to reconnect.

Scalable

Scale to multiple servers and send events to all connected clients with ease.

Basic example

Browser window with server exampleBrowser window with client example

Run this example on Replit / StackBlitz / CodeSandbox

Latest blog posts

Blog feed: RSS / atom

Our sponsors

Become a sponsor