Open mouhannadali opened 5 years ago
`const botContainer = document.getElementById('botContainer');
botContainer.classList.add("wc-display");
const params = BotChat.queryParams(location.search);
window.WebChat.renderWebChat(
{
directLine: window.WebChat.createDirectLine({
secret:'' ,
token: '',
domain: params['domain'],
webSocket: false // defaults to true
}),
userID: 'web ID',
username: 'Web Chat User',
locale: 'en-US',
resize: 'detect',
chatTitle: "SAMPARK",
botAvatarInitials: 'WC',
userAvatarInitials: 'WW'
},
botContainer
);`
Hi, I couldn't mange to connect offline-direct line to BotFramework-WebChat (v4). Any suggestion ?