Connection status is always notAvailable for current user

Hi,

print(sendbird.currentUser?.connectionStatus);

This always prints UserConnectionStatus.notAvailable in the app. But i can see online status in dashboard and getting this response from platform api "is_online": true

Hello @aayushthapa,

The current user’s connectionStatus will always be notAvailable. If you are looking to see if you are connected to the Sendbird server you can check the WebSocket connection state by calling getConnectionState(). getConnectionState method - SendbirdSdk class - sendbird_sdk_api library - Dart API

print(sendbird.getConnectionState());