Rate this page:

Thanks for rating this page!

We are always striving to improve our documentation quality, and your feedback is valuable to us. How could this documentation serve you better?

TaskRouter.js: Versions and Changelog

1.19 (February 28, 2019)

  • Added region parameter to constructors for Workspace, Worker, and TaskQueue clients
  • Added maxRetries parameter to constructors for Workspace, Worker, and TaskQueue clients
  • Improved log for request timeouts to say "Retries exhausted after X attempts" instead of "Internal Server Error"
  • Fixed issue with generated API URL when region parameter was passed to a Client constructors

1.14 (December 19, 2018)

  • Fixed an issue where task completion reason in completeTask() was not honored

1.14 (December 19, 2018)

  • Fixed an issue where task completion reason in completeTask() was not honored

1.13 (April 16, 2018)

  • Fixed an issue that could prevent the disconnected event from surfacing

1.12 (January 22, 2018)

  • Fixed an issue where Firefox can occasionally throw a warning on SDK init.

1.11 (September 28, 2017)

  • Support new cumulative and real time stats endpoints.

1.10.1 (September 25, 2017)

  • Fix issue with Conference Instruction parameters not being applied when NOT using the options parameter.

1.10 (September 1, 2017)

  • Allowing all Conference Instruction parameters

1.9.4 (June 15, 2017)

  • Fix updating of expiring tokens in Workspace, TaskQueue JS SDKs

1.9.3 (February 7, 2017)

  • Fix Dates for Worker on ready event
  • Fire disconnected event if we lose connectivity for 60 seconds.
  • Add license information

1.9 (January 26, 2017)

  • Allow DequeueStatusCallbackEvent parameter to be applied to Dequeue Instructions

1.8.1 (January 3, 2017)

  • Fixed an issue with Worker DateCreated, DateUpdated, DateLastStatusUpdated being incorrect

1.8 (November 16, 2016)

  • Exposed task.addons as a property
  • Exposed reservation.redirect to redirect a reservation's call.

1.7.1 (September 15, 2016)

  • Fixed fetchReservations for a Worker such that the reservation.task object is populated.

1.7 (August 15, 2016)

  • Added connected event when websocket connects
  • Added disconnected event when websocket disconnects
  • Deprecated offline event in favor of disconnected event
  • Added ability to complete a Task for a Worker
  • Added ability to update a Task for a Worker
  • Added ability for closing existing socket connections for the same Worker

1.6 (July 14, 2016)

  • Throw an exception if no Token is provided upon initialization
  • Added capacity.update event for Multi-Task Workers
  • Added support for fetching the Channels a Multi-Task Worker is assigned

1.5 (June 16, 2016)

  • Exposed an error event to handle websocket errors
  • Exposed an offline event to handle websocket going offline
  • Fixed a bug such that upon a Worker being initialized, do not try and update the Worker to the given Connection Activity if there are pending Reservations for the Worker.

1.4 (March 28, 2016)

  • Upon a Worker being initialized, you can specify an Activity for a Worker to be placed in upon connecting and disconnecting (online and offline), which the JS SDK will handle automatically.

1.3 (March 22, 2016)

  • reservation.dequeue() now supports DequeueRecord, DequeueTimeout, DequeueStatusCallbackUrl, DequeueTo

Rolling over from prior versions:

1.2 (January 25, 2016)

  • Pending Reservations for a Worker are fetched on load of the JS SDK and will trigger a reservation.created event.
  • CallTo and CallRecord parameters added for function.
  • JS SDK will now attempt to reconnect when a websocket is closed.
  • Developers can turn off a console messages from the JS SDK by providing a value (default is on).
  • Developers can now handle 500 errors correctly in their applications.

Rolling over from prior versions:

1.1.3 (December 14, 2015)

  • reservation.canceled events were changed back to send a Reservation object and provide a with a ReservationSid when Task is deleted.

1.1.2 (October 9, 2015)

  • reservation.canceled events were changed to a Task object rather than a Reservation object to limit client side errors when Tasks were deleted.

1.1.1 (August 11, 2015)

Initial 1.1.1 release.

  • Added support for fetching and updating all entities Workspace
  • Added support for Reservation Instructions (Accept / Reject / Dequeue / Call) for integration with Enqueue TwiML verb

1.0 (Feb 18, 2015)

Initial 1.0 release.

  • Added support for workers to receive reservation and worker activity events
Rate this page:

Need some help?

We all do sometimes; code is hard. Get help now from our support team, or lean on the wisdom of the crowd browsing the Twilio tag on Stack Overflow.