CallEventMap

event map

interface CallEventMap {
  'cnl:config': { config: CallConfig; senderId: string };
  'cnl:create': { config: CallConfig; senderId: string };
  'cnl:delete': { reason?: string; senerId: string };
  'track:add': TrackAddEvent;
  'track:del': CallEvent;
  'track:mute': TrackMuteEvent;
  'user:add': { users: User[] };
  'user:del': { senderId: string; users: string[] };
  'user:join': { userId: string };
  'user:left': { userId: string };
  'user:mod': { senderId: string; users: User[] };
}

index

Properties

cnl:config

config updated

{ config: CallConfig; senderId: string;  }

cnl:create

user created channel, event sent to initial users in channel to join call

{ config: CallConfig; senderId: string;  }

cnl:delete

channel deleted

{ reason?: string; senerId: string;  }

track:add

track added

TrackAddEvent

track:del

track deleted

CallEvent

track:mute

track muted

TrackMuteEvent

user:add

users were added to call

{ users: User[];  }

user:del

call user delete

{ senderId: string; users: string[];  }

user:join

a user joined call, may not have published tracks yet

{ userId: string;  }

user:left

a user left call

{ userId: string;  }

user:mod

user moderated

{ senderId: string; users: User[];  }