Firebase WebSocket协议文档 [英] Documentation for Firebase WebSocket protocol
问题描述
是否有某种文档描述了Firebase WebSocket协议(用于firebase实时数据库)?我知道来源最近是开源的(例如 https://github.com/firebase/firebase- js-sdk ),但我想知道是否存在易于读取的内容,因此我不必通过代码进行读取/调试.
Is there some sort of documentation describing the Firebase WebSocket protocol (used in firebase realtime database)? I know the sources were open sourced recently ( e.g. https://github.com/firebase/firebase-js-sdk ) but I was wondering if there is something easily readable so I don't have to read / debug thru the code.
任何文档如何在本地调试代码都是很棒的.
Also any docs how to debug the code locally would be terrific.
推荐答案
firebaser此处
Firebase数据库有线协议目前尚未记录.
The Firebase Database wire protocol is currently undocumented.
但是由于这些问题与调试有线协议有关,因此最好提及如何打开调试日志记录(显示套接字上的通信量):
But since the questions is related to debugging the wire protocol, might be good to mention how to turn on debug logging (which shows traffic over sockets):
- JS:
firebase.database.enableLogging(true);
- iOS:
[FIRDatabase setLoggingEnabled:YES];
- Android:
FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);
- JS:
firebase.database.enableLogging(true);
- iOS:
[FIRDatabase setLoggingEnabled:YES];
- Android:
FirebaseDatabase.getInstance().setLogLevel(Logger.Level.DEBUG);
这篇关于Firebase WebSocket协议文档的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!