QuickstartOverview

Quickstart

Get your first realtime event flowing in under five minutes. Pick the language closest to your stack — Mawjly speaks the Pusher protocol, so the official SDK works unchanged.

1. Create an app

Sign upCreate app. Mawjly returns three values:

app_idPublic — used in REST URLs
keyPublic — sent in WebSocket connect params
secretPrivate — server only, signs trigger requests

2. Pick your stack

Browser / frontend

Server

  • Laravel + Echo — drop-in for Laravel’s pusher broadcast driver
  • PHPpusher-php-server
  • Node.jspusher npm package
  • Python — official pusher PyPI package

3. The four config values

Whichever SDK you use, the only Mawjly-specific changes vs. Pusher are:

- wsHost: 'ws-mt1.pusher.com',
- cluster: 'mt1',
+ wsHost: 'ws-sa.mawjly.com',
+ cluster: 'sa',
   key: 'YOUR_MAWJLY_KEY',
   forceTLS: true,

Everything else — channel APIs, auth signing, presence, encrypted channels — is identical to Pusher.

Already on Pusher?

See Migrating from Pusher — the four-config-values cheat sheet plus an .env diff.