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
Properties
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; }
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; }