microsoft / BotFramework-WebChat

A highly-customizable web-based client for Azure Bot Services.
https://www.botframework.com/
MIT License
1.58k stars 1.53k forks source link

Sample: Update minimizable sample with multiple polling interval #1659

Open compulim opened 5 years ago

compulim commented 5 years ago

This sample work should not touch the production code of Web Chat. If modifying Web Chat is needed to complete this sample, by either accomplishing the objective, or making the sample code more intuitive and easy to understand. Please discuss before modifying the production code.

In our sample 12, "minimizable UI", the Web Chat UI is initially minimized. In this early minimized state, Web Chat will not connect to Direct Line channel.

After the UI is restored, Web Chat will start to connect to Web Chat. And for subsequent minimizes, the Direct Line channel will remain active/connected.

Since polling interval on DirectLineJS can be tweaked (for RESTful connection), it will be great to explore this feature:

Please verify in network trace that the polling interval settings work. If not, please file a bug to DirectLineJS repository and link it here.

ghost commented 5 years ago

Please elaborate

compulim commented 5 years ago

@neetu-das elaborated. 😉