-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Livestreaming typing animation #5141
Conversation
Awesome. Can't wait to t try this out👍👍👍 |
Hi @compulim, Do you have an estimate when We can use this with the Bot Framework SDK? |
I am interesting in testing it quickly too. |
Releases from |
Changelog Entry
Added
channelData.webChat.styleOptions.typingIndicatorDuration
to override the default typing indicator duration on a per-activity basis, by @compulim, in PR #5141Description
Added livestreaming support and per-activity typing indicator duration.
Currently, we only support streaming contents. In future, we will support informative message indicating streaming status.
Design
Livestreaming
Add livestreaming support via "typing" activity with "text" field.
The following JSONs are not strictly enforced in Web Chat. However, for best compatibility across clients, bot authors are expected to follow the format.
Support of attachments and other features varies across clients. Bot authors should test their bot on individual clients.
Multiple simultaneous livestream session is supported. Make sure each session has its own unique ID.
First chunk
The first chunk indicates start of a livestream session.
Subsequent chunks
Final chunk
The final chunk will "close" the livestreaming session with a finalized message.
Per-activity typing indicator duration
Bot author can specify how long a typing indicator should show up for a specific activity via
channelData.webChat.styleOptions.typingIndicatorDuration
.Currently, the
channelData.webChat.styleOptions
only supportstypingIndicatorDuration
. The broader support ofstyleOptions
is being tracked by #5185.Specific Changes
useGetActivitiesByKey
to support "multiple activity revisions"WebChatActivity.channelData.webChat.styleOptions.typingIndicatorDuration
propertystyleOptions.typingIndicatorDuration
for the specific activityWebChatActivity.channelData.webChat.receivedAt
property to indicate when the activity is received by Web ChatHOOKS.md
to include theuseGetActivitiesByKey
and some missing hooksCHANGELOG.md
Review Checklist
Accessibility reviewed (tab order, content readability, alt text, color contrast)Browser and platform compatibilities reviewedz-index
)Internationalization reviewed (strings, unit formatting)package.json
andpackage-lock.json
reviewedSecurity reviewed (no data URIs, check for nonce leak)