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

    Interface CallDataChannelFactory

    Opens application data channels on a call's peer connections.

    interface CallDataChannelFactory {
        createDataChannel(
            peerId: string,
            label: string,
            opts?: RTCDataChannelInit,
        ): RTCDataChannel | undefined;
    }

    Hierarchy (View Summary)

    Index

    Methods

    • Creates a data channel on the connection to peerId.

      Parameters

      • peerId: string

        The remote peer to open the channel to.

      • label: string

        Channel label.

      • Optionalopts: RTCDataChannelInit

        Standard RTCDataChannelInit options.

      Returns RTCDataChannel | undefined

      The channel, or undefined if no connection to peerId exists.