client-sdk-js
client-sdk-js copied to clipboard
Receive Shutdown Reason in RoomEvent.Disconnected
Describe the problem
When shutting down the agent via ctx.shutdown(reason=) one can add a shutdown reason.
In the client sdk, I would like to receive this shutdown reason in order to e.g. know whether whether it was a clean shutdown or an error shutdown.
Describe the proposed solution
Return the reason in the RoomEvent.Disconnected event
Alternatives considered
No response
Importance
would make my life easier
Additional Information
No response