ConnectionStateChangedEvent type

Payload per l'evento modificato dallo stato.

type ConnectionStateChangedEvent = (args: {
  newValue: ConnectionState
  oldValue: ConnectionState
  reason?: ConnectionStateChangedReason
}) => void