Skip to content

requestChannel fails to register new data channel initiated from peer #56

Description

@jtj02

The callback from requestChannel is never called when the following code is run at either end of a call. The channel:opened callback is never run on the slave side either.

qc.on('call:started', function(peerId) {
   if (qc.isMaster(peerId)) {
        qc.createDataChannel(newChannel);
    } else {
        qc.requestChannel(peerId, newChannel, function() {
            console.log('requestChannel callback fired');
        });
    }
}

qc.on('channel:opened', function(id, dc) {
    console.log('channel opened');
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions