共用方式為


ConnectionStateChangedEvent type

狀態已變更事件的承載。

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