How to use SignalR on Flutter?

2020-06-12 05:09发布

Hi guys I'm 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.

Do you guys have any tips on how to accomplish that task ?

2条回答
Juvenile、少年°
2楼-- · 2020-06-12 06:06

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

查看更多
够拽才男人
3楼-- · 2020-06-12 06:09

If flutter plugins are not available for Signalr, you can always use native libraries available for signalr and use flutter's platform channels to use those native features in your flutter code.

Here are some helpful resource that might help

How to use signalr in Android?

https://github.com/Gurgen/SignalR-.net-core-android-client

Flutter platform channels

查看更多
登录 后发表回答