ConnectionStateChangedEvent type
Conteúdo do evento de estado alterado.
type ConnectionStateChangedEvent = (args: {
newValue: ConnectionState
oldValue: ConnectionState
reason?: ConnectionStateChangedReason
}) => void