ConnectionStateChangedEvent type

状态更改事件的有效负载。

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