howdyai / botkit-starter-web

Botkit Anywhere - a starter kit for building a bot that lives in your website or app
https://botkit.ai
MIT License
113 stars 75 forks source link

isTyping only seems to be supported when using sockets. #16

Open jackdh opened 6 years ago

jackdh commented 6 years ago

Hey again,

I've noticed that isTyping does not seem to work when using webhooks.

        bot.startTyping = function() {
            if (bot.connected) {
                bot.ws.send(JSON.stringify({
                    type: 'typing',
                }));
            }
        };

I guess this is due to the limitation of webhooks against sockets. However is there a plan to implement a work around for this?

benbrown commented 6 years ago

I have a vague plan to handle this - to move the typing delays to the front end client when using webhooks. But it requires some other changes deep inside Botkit, so the timeline for now is unknown.