Skip to main content

Monitor Connection Status

Set Status Listener

When the connection status between the SDK and RC server changes, developers can handle it using the following method.

Method

setOnConnectionStatusChangedListener(listener?: (status: RCIMIWConnectionStatus) => void): void;

Parameter Description

Parameter NameParameter TypeDescription
statusRCIMIWConnectionStatusThe connection status between the SDK and RC server

Code Example


engine?.setOnConnectionStatusChangedListener((status: RCIMIWConnectionStatus) => {
//...
});