火力地堡.NET访问 [英] Firebase .NET access

查看:109
本文介绍了火力地堡.NET访问的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我想在C#中现在使用的火力地堡从.NET,你有什么建议来处理回调的最好方法是什么?我看你现在的客户端库正在使用的WebSockets。你能提供一个如何最好地设置这在C#中的一个小例子?

If I want to use Firebase now from .NET in C#, what is your suggestion as the best way to handle the callbacks? I see your current client library is using WebSockets. Can you offer a small example of how best to set this up in C#?

推荐答案

现在唯一的选择就是通过的 REST API 。这不会给你实时的数据更新,但你可以读取和写入火力地堡。例如,这将是非常适合于一个ASP.Net后端使用REST API以广播它们使用JavaScript客户数据到客户机。

Right now the only option is to interface with Firebase through the REST api. This will not give you real-time data updates, but you can read and write to Firebase. For instance, it would be very suitable for an ASP.Net backend to use the REST API to broadcast data to clients which are using the JavaScript client.

至于C#等同于JavaScript客户端(可以同步数据和接收实时更新)一个完整的客户端,不幸是不可行的现在。 WebSocket的中使用的线协议没有证件或稳定,客户端code胆量实际上是pretty的粗糙。我们希望释放一个规范的未来,使人们可以写出更多的客户,但它的变化过于频繁现在。对不起!

As for a full C# client equivalent to the JavaScript client (capable of syncing data and receiving realtime updates), that unfortunately isn't feasible right now. The wire protocol used within the WebSocket isn't documented or stable, and the guts of the client code are actually pretty gnarly. We're hoping to release a spec in the future so people can write more clients, but it's changing too frequently right now. Sorry!

这篇关于火力地堡.NET访问的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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