Documentation Index
Fetch the complete documentation index at: https://mintlify.com/sockudo/sockudo/llms.txt
Use this file to discover all available pages before exploring further.
Get Started in 5 Minutes
This quickstart guide will have you running Sockudo with Docker and connecting your first client.This guide uses Docker for simplicity. For production deployments or building from source, see the Installation guide.
Prerequisites
Make sure you have the following installed:
- Docker (v20.10 or later)
- Docker Compose (v2.0 or later)
- Node.js (v16 or later, for testing the client)
Clone and Start Sockudo
Clone the repository and start Sockudo with Docker Compose:This will start:
- Sockudo server on
http://localhost:6001 - Redis (for scaling and state management)
- Prometheus metrics on
http://localhost:9601/metrics
Verify Sockudo is Running
Test the health endpoint:You should see:
The default app credentials are:
- App ID:
demo-app - App Key:
demo-key - App Secret:
demo-secret
Connect Your First Client
Create a simple HTML client to test the connection.Create a file named Open the file in your browser:You should see ”✓ Connected to Sockudo” in the page.
test-client.html:test-client.html
Using pusher-js in Node.js
For server-side testing or Node.js applications:Next Steps
Channel Types
Learn about public, private, and presence channels
Authentication
Set up channel authentication for private channels
Configuration
Configure Sockudo for production
Scaling
Scale horizontally with Redis or NATS
Troubleshooting
Connection refused or timeout
Connection refused or timeout
Check that Sockudo is running:Check Docker logs:
Client connects but receives no events
Client connects but receives no events
Verify the channel name matches exactly:
- Client subscribes to:
test-channel - Server triggers on:
test-channel
CORS errors in browser
CORS errors in browser
Sockudo allows all origins by default in development. If you’re seeing CORS errors, check your Docker logs:Set
CORS_ORIGINS=* in your .env file if needed.Port already in use
Port already in use
If port 6001 is already in use, change it in Then restart:
.env:Clean Up
To stop Sockudo and remove containers:Ready for production? Check out the Installation guide for building from source and advanced deployment options.