github twilio/twilio-video.js 1.13.0

latest releases: 2.8.2-rc1, 2.28.2-rc1, 2.28.1...
5 years ago

1.13.0 (July 30, 2018)

New Features

  • When the Room is completed via the REST API, the Room emits a "disconnected"
    event with a TwilioError 53188, "Room completed". Previously, there was no way
    to distinguish this case from calling disconnect on the Room (JSDK-1884). In
    some applications, this will be expected, so you should set an event listener
    on the Room as follows:

    room.once('disconnected', (room, error) => {
      if (!error) {
        console.log('You disconnected from the Room by calling `disconnect`');
        return;
      }
      switch (error.code) {
        case 53118:
          console.log('The Room was completed server-side');
          break;
        // Handle any other errors of interest.
        default:
          console.error(`You were disconnected: ${error.message}`);
          break;
      }
    });

Don't miss a new twilio-video.js release

NewReleases is sending notifications on new releases.