question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add ability to overwrite endpoint URL via protocol handler

See original GitHub issue

In order to add a deep link to the emulator in the BotBuilder .NET Samples, there needs to be a way to accommodate the dynamically assigned localhost port that is given to the sample when it is running in VS [Code].

Ex. The included .bot file has an endpoint service that defaults to localhost:5000 for the endpoint. However, when the sample is run in Visual Studio, a port is dynamically assigned unless there is a specified config file or line in the sample setup that specifies a port of 5000. So the user will click the emulator deep link, open the emulator, and the emulator will read the bot file and try to connect to the endpoint service at localhost:5000, even though Visual Studio is running the bot at localhost:39734.

A solution to this is allowing an extra parameter to be passed via protocol URI that would allow the port or endpoint URL to be overridden.

Current: bfemulator://bot.open?path={PATH_TO_BOT_FILE}

Proposed: bfemulator://bot.open?path={PATH_TO_BOT_FILE}[ &port={PORT_OVERRIDE} | &url={URL_OVERRIDE} ]

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:8 (8 by maintainers)

github_iconTop GitHub Comments

3reactions
tonyanzianocommented, Jun 11, 2018

@cleemullins Picked up working on it today. Hopefully will have it in by the end of the week.

0reactions
tonyanzianocommented, Jun 20, 2018

Closing with merge of PR.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Override/Extend the default http protocol Handler on Android
The only way I've been able to resolve my issue is by setting the streamHandler and StramHandler factory to null using reflection through...
Read more >
Navigator.registerProtocolHandler() - Web APIs | MDN
The Navigator method registerProtocolHandler() lets websites register their ability to open or handle particular URL schemes (aka protocols) ...
Read more >
Create a custom URL Protocol Handler - Unix StackExchange
To register a new URL scheme handler with XDG, first create a Desktop Entry which specifies the x-scheme-handler/... MIME type:
Read more >
How do I configure custom URL handlers on OS X? - Super User
OS X URL handler to open links to local files. I get that you can tell the system that a particular program is...
Read more >
Configuring dynamic endpoints - IBM
Click the Dynamic Endpoints tab. · From the Front Side Protocol list, select a handler and click Add. · Optional: Set the Autocreate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found