Skip to main content

Web library v1.2.20

  • Added support for timestamps in the weekdays setting.
  • Fixed an issue where "inactive" clients where still making a lot of polling (polling info) requests for new messages.

Timestamps in weekdays

You can now define your business hours for specific dates using the following format:

window.parleySettings = {
"weekdays": [
["Sunday"]
["Monday", 8.00, 22.00],
["Tuesday", 8.00, 22.00],
["Wednesday", 8.00, 22.00],
["Thursday", 8.00, 22.00],
["Friday", 8.00, 22.00],
["Saturday"],
[1603177200, 1603188000] // Tue Oct 20 2020 09:00:00 - 12:00:00 (GMT+0200)
]
};

Fixed polling

The way this worked was, whenever your document has focus (document.hasFocus()), it wil never go past the 30 second rule in the polling rules. This was made so any new messages for an "active" conversation would be retrieved faster. This rule now has been extended to also check if you are within the defined business hours; if you are not, the rule will go past 30 seconds (because the chances you get a response from an Agent is rather small here).