I\'m trying to send and receive events from an embedded webchat which follows the code for the website from this example https://github.com/ryanvolum/backChannelBot and the bot
I re-created your project and published it to Azure: http://QuickBackChannelEventTest.AzureWebsites.net/index.html
I posted the code on GitHub. You'll need to change the MicrosoftAppId and MicrosoftAppPassword in the web.config, and add your bot's Direct Line
secret to the index.html page's BotChat.DirectLine creation:
var botConnection = new BotChat.DirectLine({
secret: '**DIRECT_LINE_SECRET**',//params['mysecret'],
//token: params['t'],
//domain: params['ngroktunneledurl.com/api/messages'],
webSocket: params['webSocket'] && params['webSocket'] === "true" // defaults to true
});
I also added a folder called TestStandAlone that contains only Index.html, botchat.css and botchat.js: https://github.com/EricDahlvang/BackChannelEventTest/tree/master/TestStandalone This works as expected once the the Direct Line secret for the bot is set.