BotFramework-WebChat icon indicating copy to clipboard operation
BotFramework-WebChat copied to clipboard

Web chat not displaying Typing indicator

Open AnithaJothi opened this issue 9 years ago • 6 comments

Hi, I am trying to display the "Typing" indicator in my webchat. Below is the code snippet

Activity isTypingReply = activity.CreateReply(); isTypingReply.Type = ActivityTypes.Typing; isTypingReply.Text = null; await connector.Conversations.ReplyToActivityAsync(isTypingReply);

This displays a "TYPING" indicator in the emulator (see screenshot below) image

However, when i publish the same, the typing indicator does not appear (see screenshot below) image

Any help is much appreciated!! Note - Am using the classic web chat control with Preview option enabled. Am building using the Bot Builder C# SDK - bot builder version - 3.5.2

AnithaJothi avatar Feb 15 '17 12:02 AnithaJothi

the Typing indicator only shows when using WebSockets, and the channel does not yet enable WebSockets. you'd need to use the current build directly via CDN or building yourself.

billba avatar Feb 15 '17 13:02 billba

Using directline + javascript client, connecting with websockets=false it does not show typing indicator, but why not?

JobaDiniz avatar Jan 08 '18 20:01 JobaDiniz

That is a reasonable question. @dandriscoll?

billba avatar Jan 08 '18 21:01 billba

I am facing the same issue and tried searching a lot of soln on the same but unfortunately nothing helped.

I have a built a custom chat window using cshtml and javascript. I am sending Typing activity from my bot solution. This piece of code is working with "webchat" and "emulator" but it is not working with my designed page.

when i am setting webSocket = true my directline calls are failing. PFB

    BotChat.App({
        botConnection: botapp.botConnection,
        user: botapp.user,
        bot: bot,
        resize: 'detect',
        directLine: {
            secret: '.......................gc.cwA.gzs.DgekX5............................',
        webSocket:true
    }
    }, document.getElementById("divbot"));

Please help me out on the issue.

Thanks in advance. Appreciate you for taking out time this.

tinuCoder avatar Mar 11 '18 07:03 tinuCoder

When i enable the socket it thows following error and nothing works.

image

tinuCoder avatar Mar 11 '18 07:03 tinuCoder

You need to pass either directLine or botConnection but not both.

billba avatar Mar 12 '18 01:03 billba