您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

RTCStatsEvents.ts 893B

123456789101112131415161718192021222324
  1. /**
  2. * Events emitted by the RTCStats module.
  3. */
  4. export enum RTCStatsEvents {
  5. /**
  6. * Event emitted when the websocket connection to the rtcstats server is disconnected.
  7. */
  8. RTC_STATS_WC_DISCONNECTED = 'rtcstats_ws_disconnected',
  9. /**
  10. * Event emitted when any PeerConnection event is triggered.
  11. *
  12. * @param {object} event - The PeerConnection event.
  13. * @param {string} event.type - The event type.
  14. * @param {object} event.body - Event body.
  15. * @param {string} event.body.isP2P - PeerConnection type.
  16. * @param {string} event.body.state - PeerConnection state change which triggered the event.
  17. */
  18. RTC_STATS_PC_EVENT = 'rtstats_pc_event',
  19. };
  20. // exported for backward compatibility
  21. export const RTC_STATS_WC_DISCONNECTED = RTCStatsEvents.RTC_STATS_WC_DISCONNECTED;
  22. export const RTC_STATS_PC_EVENT = RTCStatsEvents.RTC_STATS_PC_EVENT;