使用Geofire集传输多少数据 [英] How much data is transferred with geofire set

查看:84
本文介绍了使用Geofire集传输多少数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我使用以下命令将位置发送到geofire表时,传输了多少数据 geoFire.set("?????", [??.????, ??.????])在建立浏览器客户端的连接之后?

How much data is transferred when I send the location to geofire table with geoFire.set("?????", [??.????, ??.????]) after the connection of the browser client has be set up?

我们想向公共交通运输中的车队展示的客户实际上并没有那么多-但想提供事实.每5-10秒获取一次数据会很好.

We want to show a client with a fleet in public transport that it isn't really that much - but want to give facts. It would be nice to get the data every 5-10 seconds.

推荐答案

要查看正在传输多少数据:

To see how much data is being transferred:

  • 打开浏览器的网络"标签
  • 选择 WS 面板以仅查看Web套接字
  • 找到连接到Firebase服务器的Web套接字
  • 检查设置值和确认的框架的大小
  • open the network tab of your browser
  • select the WS panel to just see web sockets
  • find the web socket that connects to your Firebase server
  • check the size of the frame that sets the value and the acknowledgement

第一个GeoFire javascript示例的一个示例:

{"t":"d","d":{"r":2,"a":"m","b":{"p":"/-Kcj5Z0QMWqWaqO-3bUk","d":{"fish0":{".priority":"rmjhprs42j","g":"rmjhprs42j","l":[-16.130262,153.605347]}}}}}

149字节

149 bytes

这篇关于使用Geofire集传输多少数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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