Helonyxe Realtime

Checking server status…

One realtime server for every app you run.

Point your backend and your frontend at one URL. Each app gets its own private space, every user is signed in by their own app, and the server spreads itself across every CPU core and every machine you add.

How an event travels Your backend publishes an event to the socket server. The server, backed by Redis, delivers it only to App A's users. App B's users, connected to the same server, never receive it. Your backend POST /apps/:id/events Socket server Redis App A users App B users
An event for App A reaches App A's users only. App B shares the server and never sees it.

Connect an app in four steps

Nothing to install in your app beyond a JWT library and the socket.io client. Your backend stays the only place that decides who sees what.

  1. Register the app

    One call to the admin API returns an app id, a public key and a secret.

  2. Sign a token for each user

    Your backend signs a short-lived token with the app secret, listing the rooms that user may join.

  3. Connect the frontend

    The browser or phone opens /app/<key> with that token and joins its rooms.

  4. Publish from the backend

    When something changes, your backend posts the event and every user in those rooms gets it instantly.

Two snippets, and your app is live

The backend publishes over plain HTTPS, so any language works: Laravel, Node, Python, Go. The frontend uses the standard socket.io client on web, React Native or any mobile stack.

Laravel guide  ·  Frontend guide
PHP · backend
Http::withToken($secret)->post("$url/apps/$appId/events", [
    'rooms' => ["user:$userId"],
    'event' => 'contract.signed',
    'data'  => ['contractId' => $id],
]);
JS · frontend
const socket = io(`${URL}/app/${APP_KEY}`, {
  auth: async (cb) => cb({ token: await getToken() }),
});
socket.on('contract.signed', (data) => refresh(data.contractId));

Grows with the load, on its own

Start on one server. Every CPU core is used from the first boot, and adding machines needs no code change.

Every core on one machine

One worker per CPU starts automatically. Each phone stays on the worker that knows it, and a worker that crashes is replaced within a second.

More machines behind one URL

Every instance shares rooms through Redis. Kubernetes manifests add pods when CPU climbs past 70% and remove them when it falls.

Built so apps cannot see each other

Many apps share one server, so isolation is enforced by the server itself, and each rule below is covered by an automated test.

  • Separate space per appA room called orders in one app has nothing to do with orders in another.
  • Users only reach their own roomsA user is always in their private room and can never join someone else's.
  • Only your secret can publishAnother app's valid secret is refused on your app.
  • Revoking takes effect immediatelyRotate a secret or delete an app and its connections drop on every machine at once.
  • One busy app cannot slow the othersPer-app delivery limits are shared across every machine, with caps on payload size and rooms per user.

Run it on your machine

Docker is all you need. The server, Redis, this page and the documentation start with one command.

shell
cp .env.example .env   # set ADMIN_TOKEN and REDIS_PASSWORD
docker compose up -d --build
open http://localhost:3000/docs
Full quick start