call
Making a Call in a Chat
1. Initiate the Call
call state
ringing: when the receiver is online;
missed: the receiver is not active, or they are, but chooses not to respond for sometime, before the caller then ends the call;
accepted: when the receiver accepts the call;
rejected: when the receiver rejects the call;
ended: when either participant hangs up;
the receiver gets notified
caller
makes the call, the receiver
, if alive on the socket, receives an event with the action type user-calling
;
2. Receiver Responds to the Call
accept-call
or reject-call
, to the caller;
the caller gets notified of the receiver's response
call-accepted
or call-rejected
, based on the receiver's response;
3. When Connected or Disconnected
call-connected
action should be emitted to the socketcall-disconnected
should be emitted to the socket, if possible; once the connection is restored, call-connected
should be emitted to the socket again.
4. Hanging Up
end-call
; then, both get a response event on the same action type;
Modified at 2025-06-15 05:49:23