Occurs when the connection state changes between the SDK and the Agora RTM system.
The new connection state.
Reasons for the connection state change.
Occurs when the local user receives a peer-to-peer message from a remote user.
The received peer-to-peer message object.
The uid of the sender.
The properties of the received message.
Occurs when the callee receives a call invitation from a remote user (caller).
A RemoteInvitation object.
Occurs when the online status of the peers, to whom you subscribe, changes.
Occurs when the RTM server detects that the RTM token has exceeded the 24-hour validity period and when the SDK is in the RECONNECTING
state.
CONNECTED
state.Generated using TypeDoc
Event listener type of the RtmClient instance. In this interface, the function property’s name is the event name; the function property’s parameters is the parameters of the event listener function.
Example
Listening to peer-to-peer messages.