SignalR 是否适用于移动设备 [英] Does SignalR work on Mobile

查看:51
本文介绍了SignalR 是否适用于移动设备的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这可能是一个简单的问题,但我正在努力寻找答案.谁能告诉我 SignalR 是否在移动浏览器(如 S3 或 pads 等)上受支持?如果不支持 websockets,我可以看到它回退到长轮询,但我可以找出移动浏览器是否支持它?我找到了一个在线井字游戏演示,但这不适用于我的手机.

It might be a simple question but I am struggling to find the asnwer. Can anyone tell me if SignalR is supported across mobile browsers such as S3 or pads etc? I can see it falls back to long polling if websockets are not supported but I can find out if this is supported in mobile browsers? I found an online tic tac toe demo but this doesnt work on my mobile.

感谢您的帮助...

M

推荐答案

你的意思是在浏览器中还是原生应用可以做到?

Do you mean in the browser or if native apps can do it?

如果浏览器支持所需的传输规范,长轮询是最低公分母,那么它应该可以工作.最后它只是"HTTP.我可以确认它可以在带有 Chrome 的 Android 中运行.

If the browser supports the required transport specs, with long polling being the lowest common denominator, then it should work. It's "just" HTTP in the end. I can confirm it works in Android with Chrome for sure.

本机应用程序也差不多.如果他们有 HTTP 支持,他们应该能够使用 SignalR.SignalR 客户端有一些用于 diff 的实现.移动平台已经存在.

Same pretty much goes for native apps. If they have HTTP support, they should be able to use SignalR. There are a few implementations of SignalR clients for diff. mobile platforms out there already.

这篇关于SignalR 是否适用于移动设备的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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