vani-meeting-client
Version:
Vani Meeting Clinet SDK
33 lines (32 loc) • 803 B
TypeScript
import { Participant } from "./Participant";
export declare enum ChatMessageType {
Chat = "chat",
File = "file",
Info = "info"
}
export declare enum ChatSendVia {
WebSocket = "WebSocket",
DataChannel = "DataChannel"
}
export declare class MessagePayload {
message: string;
to: string;
extraData: any;
type: ChatMessageType | string;
senderUserId?: string;
sender?: Participant;
shouldPresist: boolean;
time: number;
chatSendVia: ChatSendVia;
constructor(_message: string);
constructor(_message: string, _to: string);
toJsonObjectForSending(): {
message: string;
to: string;
extraData: any;
type: string;
sender: string | undefined;
shouldPresist: boolean;
time: number;
};
}