github twilio/twilio-video.js 1.13.0

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`');
    switch (error.code) {
      case 53118:
        console.log('The Room was completed server-side');
      // Handle any other errors of interest.
        console.error(`You were disconnected: ${error.message}`);
latest releases: 2.13.0-rc5, 2.13.0-rc4, 2.13.0-rc3...
2 years ago