botframework-sdk
botframework-sdk copied to clipboard
Best methods to implement DirectLine Api
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 ?
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