ConnectionStateChangedEvent type
Carga para el evento de cambio de estado.
type ConnectionStateChangedEvent = (args: {
newValue: ConnectionState
oldValue: ConnectionState
reason?: ConnectionStateChangedReason
}) => void