Returns whether the SDK is connected to Agora's server.
Optional
Created using the Web SDK's IAgoraRTC.createClient method.
IAgoraRTC.createClient
import { useIsConnected } from "agora-rtc-react";function App() { const isConnected = useIsConnected(); return <div>{isConnected}</div>;} Copy
import { useIsConnected } from "agora-rtc-react";function App() { const isConnected = useIsConnected(); return <div>{isConnected}</div>;}
Returns whether the SDK is connected to Agora's server.