client-sdk-unity icon indicating copy to clipboard operation
client-sdk-unity copied to clipboard

Enhance Disconnect Event

Open holofermes opened this issue 9 months ago • 0 comments

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 DisconnectDelegate to handle disconnection events with a reason
  • Updated the Disconnected event to use DisconnectDelegate
  • Ensured Disconnected event fires with the appropriate reason when disconnection occurs via DisconnectReceived

Fixes #101

holofermes avatar Apr 11 '25 03:04 holofermes