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

How to connect to web chat v4 ? #47

Open
mouhannadali opened this issue Jul 29, 2019 · 1 comment
Open

How to connect to web chat v4 ? #47

mouhannadali opened this issue Jul 29, 2019 · 1 comment

Comments

@mouhannadali
Copy link

Hi,
I couldn't mange to connect offline-direct line to BotFramework-WebChat (v4). Any suggestion ?

@kid101
Copy link

kid101 commented Mar 26, 2020

`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
      );`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants