如何在Flutter上使用SignalR? [英] How to use SignalR on Flutter?

查看:377
本文介绍了如何在Flutter上使用SignalR?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我正在尝试与使用SignalR建立其聊天通信的Asp.Net core 2.1应用程序进行通信,但我不知道使用flutter实现此目的的最佳方法是什么.

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.

我已经搜索了一些库来执行此操作,但是我发现该库与Flutter不兼容,仅与Dart Web不兼容,因为它使用原始SignalR.js来包装方法.

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 ?

推荐答案

我刚刚为SignalR(ASP.NET Core)创建了Flutter客户端.您可以在 Pub

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

这篇关于如何在Flutter上使用SignalR?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆