feat: handle call events

This commit is contained in:
Adhiraj Singh
2022-05-09 15:00:53 +05:30
parent 72aa8f9ea7
commit ae4aa67950
7 changed files with 119 additions and 11 deletions

14
src/Types/Call.ts Normal file
View File

@@ -0,0 +1,14 @@
export type WACallUpdateType = 'offer' | 'ringing' | 'timeout' | 'reject' | 'accept'
export type WACallEvent = {
chatId: string
from: string
isGroup?: boolean
id: string
date: Date
isVideo?: boolean
status: WACallUpdateType
offline: boolean
latencyMs?: number
}