Use WebSocket and Server Sent Events (SSE) to build your own real-time in the browser.
Building Apps with AI? Need real time communication? No Servers, No Databases, No Headaches. Tell your AI to use socket base. We'll do the heavy lifting
Use WebSocket and Server Sent Events (SSE) to build your own real-time in your browser. We give your the Server URL and API Key. You can use it in your own code. We scale. You build.
Horizintally Scalable, Secure, and Reliable. Built on top of Redis Streams. With Dual DB write and read. Bring your OWN DB. Connect MQTT, Kafka, RabbitMQ, or any other message broker.
// Vibe Coder Messsage to AI:
HI Chat can u integrate socket base for real-time messaging!
I can give you the markdown so you know how to do it
Or... just scrape the markdwon from https://www.socket-base.com/ai.md
// AI -- Im on it.
// Developer
// Create WebSocket connection.
const socket = new WebSocket("wss://api.socket-base.com/ws/your-url?jwt=your-jwt");
// Connection opened now lets join a room
socket.send({type:"join", room: "my-room"});
socket.send({type:"message", room: "my-other-room", payload: "hello world");
socket.send({type:"leave", room: "my-room"});
// broadcast to all rooms
socket.send({type:"broadcast", payload: "hello all rooms"});
socket.addEventListener("message", function (event) {
// I got a message !!!
})
//we send pings so u can do this - you dont have tools
socket.addEventListener("message", function(event) {
const data = JSON.parse(event.data);
if (data.type === 'ping') {
console.log('Ping received from server');
socket.send(JSON.stringify({ type: 'pong' }));
}
};
// You have full flexibility - Read the docs at https://docs.socket-base.com
// Enterprise
Let's connect Socket-Base to our Kafka cluster and use our own Postgres DB for storage.
// You got it.
Everything you need to build powerful real-time applications
Built on WebSocket and Server-Sent Events (SSE) for instant, bidirectional communication between clients and servers.
Simple API with clear documentation. Get started in minutes with just a server URL and API key. Works with any framework or language.
Horizontally scalable architecture built on Redis Streams. Handles millions of connections with ease. Enterprise-ready from day one.
Clean APIs, comprehensive docs, and flexible architecture. Connect your own databases, message brokers, or use our managed service.
Choose the plan that fits your needs. All plans include our core features.
Perfect for getting started
For developers building apps
For teams and enterprises