Skip to content

Conversation

pranavjoshi001
Copy link

@pranavjoshi001 pranavjoshi001 commented Sep 8, 2025

Changelog Entry

Added new prop enableStreaming to composer that activates streamed responses

Description

Azure Bot Service is introducing streaming support via Direct Line. This requires deliveryMode: "stream" to be sent on activity posts. The DirectLineJS SDK now supports deliveryMode (see related PR - microsoft/BotFramework-DirectLineJS#443)

Web Chat internally creates the Direct Line client, but currently does not expose a way to configure deliveryMode

This PR extends Web Chat to allow passing deliveryMode down to the DirectLineJS SDK when posting activity.

Impact

  • Backward compatible: existing Web Chat integrations remain unchanged.
  • Enables Web Chat users to opt into streaming by passing enableStreaming as true to Composer
  • I have added tests and executed them locally
  • I have updated CHANGELOG.md
  • I have updated documentation

Review Checklist

This section is for contributors to review your work.

  • Accessibility reviewed (tab order, content readability, alt text, color contrast)
  • Browser and platform compatibilities reviewed
  • CSS styles reviewed (minimal rules, no z-index)
  • Documents reviewed (docs, samples, live demo)
  • Internationalization reviewed (strings, unit formatting)
  • package.json and package-lock.json reviewed
  • Security reviewed (no data URIs, check for nonce leak)
  • Tests reviewed (coverage, legitimacy)

@pranavjoshi001
Copy link
Author

pranavjoshi001 commented Sep 8, 2025

Keeping it draft for now, we need to merge once ABS changes go live

@pranavjoshi001 pranavjoshi001 marked this pull request as draft September 9, 2025 04:45
@pranavjoshi001 pranavjoshi001 changed the title Add stream prop in post message to get streaming by default Add stream prop in post message to get streamed responses Sep 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant