opentok / opentok-react

React components for OpenTok.js
https://www.npmjs.com/package/opentok-react
MIT License
107 stars 105 forks source link

TypeError: onStreamsUpdated is not a function #144

Open ganesh-papola opened 4 years ago

ganesh-papola commented 4 years ago

I am getting this error - TypeError: onStreamsUpdated is not a function

with sessionHelper .

createSession({
        apiKey: obj.apikey,
        sessionId: obj.Session_ID,
        token: obj.token,
        onStreamsUpdated: streams => {
          console.log('Current subscriber streams:', streams);
        }
      });