Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to use SignalR on Flutter?

I am trying to communicate with an Asp.Net core 2.1 application that uses SignalR to establish its chat communications, but I can't figure out what's the best way to accomplish that using flutter.

I've searched for some library to do that, but the one that I found was not compatible with Flutter, just with Dart web as it uses the original SignalR.js to wrap the methods.

How to accomplish that task?

like image 528
Diego Garcia Avatar asked Jun 22 '18 03:06

Diego Garcia


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.

Does SignalR require WebSockets?

ASP.NET Core SignalR is a library that simplifies adding real-time web functionality to apps. It uses WebSockets whenever possible. For most applications, we recommend SignalR rather than raw WebSockets.


1 Answers

I just created a Flutter client for SignalR (ASP.NET Core). You can find it at Pub

like image 169
Soernt Avatar answered Oct 04 '22 02:10

Soernt