RTCForge API Reference v1.1.1
    Preparing search index...

    Variable ConnectionEventConst

    ConnectionEvent: {
        DataChannel: "data-channel";
        Error: "error";
        IceCandidate: "ice-candidate";
        NegotiationNeeded: "negotiation-needed";
        StateChange: "state-change";
        Track: "track";
    } = ...

    Low-level events emitted by a single PeerConnection. Consumers of the high-level Call API normally listen to MediaEvent instead.

    Type Declaration

    • ReadonlyDataChannel: "data-channel"

      A remote-initiated data channel opened. Payload: (channel).

    • ReadonlyError: "error"

      An error occurred during negotiation or signaling. Payload: (error).

    • ReadonlyIceCandidate: "ice-candidate"

      A local ICE candidate was gathered (or null for end-of-candidates). Payload: (candidate).

    • ReadonlyNegotiationNeeded: "negotiation-needed"

      A local offer is ready to send to the remote peer. Payload: (description).

    • ReadonlyStateChange: "state-change"

      The underlying RTCPeerConnection connection state changed. Payload: (state).

    • ReadonlyTrack: "track"

      A remote track was received. Payload: (track, streams).