Raven Docs

Hosts & Co-hosts

Adding and removing publish-capable participants — the creator is the first host, everyone else is invited.

Whoever creates a stream is registered as its first HOST. Anyone else who should be able to publish audio/video is added explicitly:

const credential = await raven.liveStreams.addHost(streamId, { identity: 'bob', role: 'CO_HOST' });
await raven.liveStreams.removeHost(streamId, 'bob');

Not in the CLI or dashboard. Minting a host credential is a privileged, backend-only call — raven streams deliberately has no hosts add/hosts remove command, the same reasoning that keeps chat token minting out of the CLI. See SDK Support Matrix.

HOST vs. CO_HOST

Both can publish audio/video and moderate chat — the difference is scope, not capability:

HOSTCO_HOST
Publish audio/video
Chat moderation scopeADMINMODERATOR
Invite/remove other hosts

Removing a host is soft (removedAt is set); their existing RTC/chat credentials aren't retroactively revoked, since tokens already expire on their own — see Authentication.

Joining as a host

import { LiveStream } from '@corvidhq/client';
 
const stream = await LiveStream.join(credentials); // role: 'HOST' or 'CO_HOST'
 
await stream.room.enableCamera();
await stream.room.enableMicrophone();

isHost is true for both HOST and CO_HOST on every SDK — check role if you need to distinguish them.

Common errors

ErrorWhyFix
RAVEN_STREAM_INVALID_STATE on addHost/removeHostThe stream has already ENDED.An ended stream can't be modified — create a new one.
RAVEN_STREAM_NOT_FOUND on removeHostThe identity was never added, or already removed.removeHost is idempotent-adjacent, not silent — check the hosts list via get()/inspect first.

Production notes

  • Re-inviting a previously-removed host (calling addHost again with the same identity) reactivates them and mints fresh credentials — use this to rotate a host's token rather than tracking expiry yourself.
  • Only ever call addHost from your own backend, after your own authorization check — it's the sole path to publish access on a stream.