Getting Started with Relay Cloud

From signup to production WebSocket in 60 seconds.

1

Create an Account

Sign up at relaycloud.dev/register. You'll get a free Hobby plan with 100 connections and 1 project.

Verify your email address to activate your account.

2

Create a Project

From the dashboard, click "+ New Project" and give it a name.

You'll immediately receive:

3

Connect Your App

Your WebSocket endpoint is:

wss://ws.relaycloud.dev/app/{your-app-key}
// config/broadcasting.php
'relay' => [
    'driver' => 'pusher',
    'key' => env('RELAY_APP_KEY'),
    'secret' => env('RELAY_APP_SECRET'),
    'app_id' => env('RELAY_APP_ID'),
    'options' => [
        'host' => 'ws.relaycloud.dev',
        'port' => 443,
        'scheme' => 'https',
        'encrypted' => true,
    ],
]
# .env
BROADCAST_CONNECTION=relay
RELAY_APP_KEY=your-app-key
RELAY_APP_SECRET=your-app-secret
RELAY_APP_ID=your-app-id
const Pusher = require('pusher');

const pusher = new Pusher({
    appId: 'your-app-id',
    key: 'your-app-key',
    secret: 'your-app-secret',
    host: 'ws.relaycloud.dev',
    port: 443,
    useTLS: true,
});
import Echo from 'laravel-echo';
import Pusher from 'pusher-js';

window.Pusher = Pusher;

const echo = new Echo({
    broadcaster: 'pusher',
    key: 'your-app-key',
    wsHost: 'ws.relaycloud.dev',
    wssPort: 443,
    forceTLS: true,
    disableStats: true,
});
4

Publish Your First Event

// Laravel example
broadcast(new MessageSent($message));

// Or directly
$pusher->trigger('chat', 'new-message', [
    'user' => 'Alice',
    'text' => 'Hello from Relay Cloud!'
]);

That's it! Your app is now connected to Relay Cloud.

Note: Relay Cloud uses the same Pusher-compatible protocol as the self-hosted version. Any existing Pusher SDK works with Relay Cloud — just change the host configuration.