次の方法で共有


ConnectionStateChangedEvent type

状態変更イベントのペイロード。

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