RadChat Control in Winforms App

1 Answer 49 Views
CardView
Gary
Top achievements
Rank 1
Gary asked on 08 Oct 2021, 12:07 AM

Hi!

I followed the instructions for creating an Azure web bot resourse and used the Secret in my winform app. I dropped a RadChat control on my form and gave it the information about the azure web bot. Basically, I followed the directions on your site about this subject.

What I'm confused about is where is the websocket hub to handle my chat messages? Azure wants me to specify the endpoint for the bot. Am I supposed to create a separate web api project to handle the incoming. If that's the case, why do I need azure. I could just create a SignalR hub and write a simple client to handle chat traffic.

Just need some clarity of the what the intent of the RadChat control is and it should be used. I have a Winforms app that will be used by patrol officers in their cars and want to simply chat with other officers using our program.

Thanks in advance!

1 Answer, 1 is accepted

Sort by
0
Todor Vyagov
Telerik team
answered on 12 Oct 2021, 03:40 PM

Hi Gary,

I assume you are using this blog as a tutorial: Creating an Azure Chatbot Using Microsoft Bot Framework and the DirectLine Channel

If you use this approach you do not need to connect your azure bot to a hub, but set up a Direct Line channel: Connect a bot to Direct Line 

After research, I found out that the DirectLine channel can be used with multiple users, but it is optimized for short, client-driven conversations. Even if you keep the conversation alive, messages are deleted after 24 hours. So I am not sure this will fit your scenario with multiple-user chat.

Another option as you mentioned is to use a SignalR hub. If you consider creating a SignalR hub, feel free to use the approach used in this blog post: https://www.telerik.com/blogs/create-a-cross-platform-desktop-and-mobile-chat-application-in-30-minutes

I hope this information helps.

Regards,
Todor Vyagov
Progress Telerik

Virtual Classroom, the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products quickly just got a fresh new look + new and improved content including a brand new Blazor course! Check it out at https://learn.telerik.com/.

Tags
CardView
Asked by
Gary
Top achievements
Rank 1
Answers by
Todor Vyagov
Telerik team
Share this question
or