I am new to node.js. I have hosted below Webchat version on my server and modified directline keys and speech api keys according to my need.
https://github.com/Microsoft/BotFramework-WebChat/tree/master/samples/speech
The problem here is that currently, i have hardcoded the secret key in below code, instead of which i want to generate directline token and pass it.
BotChat.App({
bot: bot,
locale: params['locale'],
resize: 'detect',
speechOptions: speechOptions,
user: user,
directLine: {
secret: 'my secret goes here',
webSocket: params['webSocket'] && params['webSocket'] === 'true' // defaults to true
}
}, document.getElementById('BotChatGoesHere'));
How to achieve this?
Thanks in advance.