Comments (1)
A snippet for the implementation:
var requests_queue : Array = []
func add(documentId : String, fields : Dictionary = {}):
if request != REQUESTS.NONE:
requests_queue.add([REQUESTS.ADD, documentId, fields])
return
[...]
func on_pusher_request_complete(...) :
[...]
check_queue()
func check_queue():
if requests_queue.size() > 0:
var first_request = requests_queue().pop_front()
match first_request:
REQUESTS.ADD:
add(first_request[1], first_request[2])
note: this is a temporary solution. A proper scalable solution will be implemented by @WolfgangSenff
from godotfirebase.
Related Issues (20)
- [FEATURE REQUEST] Oauth PKCE support (Oauth client_secret should be optional) HOT 5
- [FEATURE REQUEST] read only when something changed HOT 1
- [BUG] HOT 2
- Godot 4.x "Get a Document" example is broken and fails. HOT 1
- Firebase Index[BUG]
- [BUG] Latest addon on 4.x branch doesn not work for Godot 4.2.2 HOT 2
- [BUG] Firebase Storage: A StorageRefrence is valid even though the file it refrences does not exist. HOT 7
- Not a bug. I need help understanding how to delete one object from Firestore in Firebase. HOT 5
- [BUG] Invalid get index 'fields' (on base: 'Dictionary'). HOT 1
- [BUG] Firebase Storage Invalid Index HOT 2
- [FEATURE REQUEST] How to push notification by FCM HOT 1
- [BUG] update function is not working in 4.2.2 HOT 2
- [BUG][Documentation] Wiki for Firestore Delete document is outdated HOT 2
- [FEATURE REQUEST] FirestoreDocument.document values to be of their respective types (the content integerValue to be int instead of String) HOT 2
- login succeeded bug HOT 5
- [BUG] Firebase.Auth.auth.idtoken is empty HOT 21
- [BUG] Request with empty list of fields crash HOT 3
- [FEATURE REQUEST] Listen to remote changes on a document HOT 6
- [FEATURE REQUEST] Allowing specific paths when updating the stored data
- [BUG] Functions URL is not taking arguments into account HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from godotfirebase.