ChatEventMap

chat events

tsinterface ChatEventMap {
  'cnl:config': { config: ChatConfig; senderId: string };
  'cnl:create': { config: ChatConfig; senderId: string };
  'cnl:delete': { reason?: string; senderId: string };
  message: Message;
  'user:add': { users: User[] };
  'user:del': { senderId: string; users: string[] };
  'user:join': { user: User };
  'user:left': { userId: string };
  'user:mod': { senderId: string; users: User[] };
}

index

Properties

cnl:config

config updated

ts{ config: ChatConfig;senderId: string; }

cnl:create

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

ts{ config: ChatConfig;senderId: string; }

cnl:delete

channel deleted

ts{ reason?: string;senderId: string; }

message

new message

tsMessage

user:add

users were added to call

ts{ users: User[]; }

user:del

call user delete

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

user:join

a user joined call, may not have published tracks yet

ts{ user: User; }

user:left

a user left call

ts{ userId: string; }

user:mod

user moderated

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