Skip to content
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

Expose Direct Line endpoint #54

Closed
billba opened this issue Dec 28, 2016 · 10 comments
Closed

Expose Direct Line endpoint #54

billba opened this issue Dec 28, 2016 · 10 comments
Labels
Suggestion Feature or behavior suggestion

Comments

@billba
Copy link
Member

billba commented Dec 28, 2016

Many folks want to run WebChat against a bot running locally. It would be extremely convenient if the Emulator could expose its Direct Line connector to any clients. As a stretch goal, it would be great to extract out said connector as an independent project that can be run by itself as "headless" emulator.

@billba
Copy link
Member Author

billba commented Dec 28, 2016

This idea is being discussed at increasing length over at microsoft/BotFramework-WebChat#243

@eanders-ms eanders-ms added the Enhancement New feature or request to evolve an additional feature label Jan 9, 2017
@forensicsguy20012004
Copy link

has there been any movement on this?

@eanders-ms
Copy link
Contributor

@forensicsguy20012004 This feature is not on the Emulator roadmap currently. It would be good if you could provide information about your scenario.

@ChrisMiskowiec
Copy link

@eanders-ms We have a web application which calls a bot using Direct Line. Currently our team cannot do local development along the full chain, because the direct line client calls out to the Bot Connector. It would be very helpful to have a way for the direct line client call to a local bot, via the emulator or some other endpoint, so that we can have our local web app call to our local bot.

@gareththackeray
Copy link

gareththackeray commented Mar 14, 2017

@ChrisMiskowiec I'm using the Emulator in exactly this way. If I'm understanding you right you just need to:

  • connect to your locally-hosted bot in the emulator by entering a localhost URL
  • see what port the emulator is listening on from the hosted log
  • make directline calls to http://localhost:<emulator port>

There are issues open to make the port configurable from the command line; I've done this in a hacky way in my fork at https://github.com/gareththackeray/BotFramework-Emulator

@eanders-ms eanders-ms added Suggestion Feature or behavior suggestion and removed Enhancement New feature or request to evolve an additional feature labels May 26, 2017
@SomaSharathSurya
Copy link

SomaSharathSurya commented Jun 26, 2017

Hi @gareththackeray ,

                  Can you please explain how to make direct line calls to  http://localhost: . Can we hit it in postman if so what are the request formats ?

Please help ! Thanks in advance .

@gareththackeray
Copy link

@SomaSharathSurya I just updated my comment to show the emulator port should go after the :

The api reference is here https://docs.microsoft.com/en-us/bot-framework/rest-api/bot-framework-rest-direct-line-3-0-api-reference

@acwio
Copy link

acwio commented Jan 29, 2018

Just a quick follow-up per all of the above comments.

Will this particular item ever be added to the official roadmap? It's a pretty crucial piece of functionality for individuals who use the DirectLineAPI as their primary pathway for bot communication.

@billba
Copy link
Member Author

billba commented Jan 30, 2018

Here is a helpful workaround: https://www.npmjs.com/package/offline-directline

@vishwacsena vishwacsena added this to the Future milestone Aug 7, 2018
@vishwacsena vishwacsena added the v4 label Aug 7, 2018
@vishwacsena vishwacsena removed the v4 label Oct 9, 2018
@vishwacsena vishwacsena removed this from the Future milestone Oct 9, 2018
@cwhitten
Copy link
Member

cwhitten commented Jan 3, 2019

Closing, no plans to implement.

@cwhitten cwhitten closed this as completed Jan 3, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Suggestion Feature or behavior suggestion
Projects
None yet
Development

No branches or pull requests

9 participants