Skip to content

Commit

Permalink
Add watermark and streamUrl parameters to DLJS constructor (#1817)
Browse files Browse the repository at this point in the history
* add watermark and streamUrl parameters to DLJS constructor

* Update CHANGELOG.md
  • Loading branch information
Corina authored Mar 15, 2019
1 parent bb07570 commit caffee2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
- `*`: Added `username` back to activity, fixed [#1321](https://github.com/Microsoft/BotFramework-WebChat/issues/1321), by [@compulim](https://github.com/compulim), in PR [#1682](https://github.com/Microsoft/BotFramework-DirectLineJS/pull/1682)
- `component`: Allow root component height and width customization via `styleOptions.rootHeight` and `styleOptions.rootWidth`, by [@tonyanziano](https://github.com/tonyanziano), in PR [#1702](https://github.com/Microsoft/BotFramework-WebChat/pull/1702)
- `component`: Added `cardActionMiddleware` to customize the behavior of card action, by [@compulim](https://github.com/compulim), in PR [#1704](https://github.com/Microsoft/BotFramework-WebChat/pull/1704)
- `bundle`: Add `watermark` and `streamUrl` parameters to createDirectLine, by [@corinagum](https://github.com/corinagum), in PR [#1817](https://github.com/Microsoft/BotFramework-WebChat/pull/1817)

### Changed

Expand Down
4 changes: 3 additions & 1 deletion packages/bundle/src/createDirectLine.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
import { DirectLine } from 'botframework-directlinejs';

export default function ({conversationId, domain, fetch, pollingInterval, secret, token, webSocket}) {
export default function ({conversationId, domain, fetch, pollingInterval, secret, streamUrl, token, watermark, webSocket}) {
return new DirectLine({
conversationId,
domain,
fetch,
pollingInterval,
secret,
streamUrl,
token,
watermark,
webSocket,
botAgent: 'webchat',
createFormData: attachments => {
Expand Down

0 comments on commit caffee2

Please sign in to comment.