Skip to content

Examples

Ready-to-use, copy-paste examples. Each one is a complete, working application — server code and client code included.

Six examples built on the Aerostack Realtime SDK demonstrating different WebSocket patterns.

Clone the examples repository and run the socket-hub demo:

Terminal window
# Clone and install
git clone https://github.com/aerostack/aerostack
cd examples/socket-hub
npm install
# Set your project credentials
cp .env.example .env
# Edit .env: VITE_PROJECT_ID, VITE_API_KEY, VITE_API_URL
# Start the frontend
npm run dev
# In a separate terminal, start the server
cd server
npm run dev

Open http://localhost:5173 and open multiple tabs to see real-time sync in action.