Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignalR with .net core in the web and QT mobile application as a Client

I'm planning to build Web application and use the SignalR library to allow web admin to chat with other users (use Mobile application)
1- System admin uses Web Application built by Asp.net Boilerplate (.NET Core 3.1).

2- other users use Mobile Application built by (Qt Mobile application )

So, Is this scenario applicable with the SignalR library, or I will encounter some limitations especially with QT Mobile application?

Update:

Why I want this approach?

Because I'm using Esri QML SDK (in Mobile App)

like image 299
Abdulaziz Avatar asked Jun 02 '20 12:06

Abdulaziz


People also ask

Does SignalR work on mobile?

NET client runs on any platform supported by ASP.NET Core. For example, Xamarin developers can use SignalR for building Android apps using Xamarin. Android 8.4. 0.1 and later and iOS apps using Xamarin.

What platform does SignalR client supports?

Windows Desktop and Silverlight Applications In addition to running in a web browser, SignalR can be hosted in standalone Windows client or Silverlight applications.


3 Answers

I am not familiar with QT Mobile Application development, however I looked for it and understood that the language of development is C++.

Based on this, here is a client lib for SignalR in C++. You can use this lib to connect to c++ Click Here

Also, I wish to bring attention to an official documentation from Microsoft that states that C++ & Swift are unofficially supported framework. Link

like image 50
Shivendra Avatar answered Nov 03 '22 23:11

Shivendra


I have not used SignalR before. However, Qt provides its own websocket QML client component as well as a server one, they have a client example here and a server example here should you want to see how the client component interacts.

I have used the QML websocket with a NodeJs websocket server and it presented no problems at all.

Creating a simple working environment should be no problem, Qt provides its own simulator with their IDE, just copy the client example, change the link to point to your server and give it a shot.

like image 45
Thunder Lord Avatar answered Nov 04 '22 00:11

Thunder Lord


If you haven't got this up and running by now, I'll suggest you would take a look at signalr-qt. We have been using this for several years now, with Qt apps for iOS, Android and Windows desktop. Unfortunately it is not maintained anymore, but we've been running it in production apps using Qt 5.6, Qt 5.12 and Qt 5.15.

like image 42
TomasL Avatar answered Nov 04 '22 00:11

TomasL