versatica / mediasoup-client

mediasoup client side JavaScript library

Home Page:https://mediasoup.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

transport.on('connect have call back which crashes my react native application when i execute it what would be the problem?

ndotie opened this issue · comments

producerTransport.on(
  'connect',
  async function ({dtlsParameters}, callback, errback) {
    await Request('connectTransport', {
      dtlsParameters,
      transport_id: data.id,
    })
      .then(data => {
        callback();//crashes the application when called, 
      })
      .catch(errback);
  },
);

Questions in the forum, please