botframework-sdk icon indicating copy to clipboard operation
botframework-sdk copied to clipboard

Best methods to implement DirectLine Api

Open varunreddycs opened this issue 8 years ago • 1 comments

Bot Info

  • SDK Platform:.NET
  • SDK Version: 3.13.1
  • Active Channels: Direct Line (Mobile App), Skype, Facebook Messenger
  • Deployment Environment: Azure Bot Service

Issue Description

I am writing a Mobile Application which will interact with Bot using DirectLine Api. As on basis, what is the recommended interval we call Conversations.GetActivitiesAsync? Any best practices ?

varunreddycs avatar Mar 21 '18 05:03 varunreddycs

A good starting point is to mimic what Webchat does which is once a second. Webchat is widely used so it is a good reference for you looking to use directline. Also take a look the DirectlineJS repository. There is also some samples in the botbuilder-samples repository. This sample is the base directline sample, and this sample uses websockets

JasonSowers avatar Mar 22 '18 18:03 JasonSowers