ConnectionStateChangedEvent type
البيانات الأساسية لحدث الحالة الذي تم تغييره.
type ConnectionStateChangedEvent = (args: {
newValue: ConnectionState
oldValue: ConnectionState
reason?: ConnectionStateChangedReason
}) => void