client-sdk-unity
client-sdk-unity copied to clipboard
Enhance Disconnect Event
Enhance Disconnect Event with Reason Information
This PR updates the Disconnected event to include a DisconnectReason, providing more context when disconnections occur. It ensures that disconnect events fire consistently across all disconnection paths, including the DisconnectReceived callback, and not just via the room events.
- Introduced
DisconnectDelegateto handle disconnection events with a reason - Updated the
Disconnectedevent to useDisconnectDelegate - Ensured
Disconnectedevent fires with the appropriate reason when disconnection occurs viaDisconnectReceived
Fixes #101