Replies: 6 comments 8 replies
-
You should just be able to queue_free the reference. If it's not having the desired effect, what's it doing instead? |
Beta Was this translation helpful? Give feedback.
-
Yeah, that will happen - I don't believe the REST API defines the "off" method, which is normally what you'd use to disconnect from those. So we have no way to prevent it from receiving the data, just prevent Godot from interacting with it. |
Beta Was this translation helpful? Give feedback.
-
Thinking about this more, there may be a thing we can do to support it better. It might be we need to implement something specifically for this scenario, where it just sends a normal HTTPS request instead of using the server-sent events protocol to try to update it. I think without that protocol in place, it may only send/return the value once. I will have to test this though, and it'll be a while before I can get to it. How urgent is this for you? |
Beta Was this translation helpful? Give feedback.
-
Is this disconnection issue going to cause problems in lobby game? Suppose a checkers game, where the player connects to room after room, If I |
Beta Was this translation helpful? Give feedback.
-
I'm not sure. We do support one-shot gets now though, so you should just use that if you need to disconnect stuff - at least where it makes sense. |
Beta Was this translation helpful? Give feedback.
-
I have a similar problem. I have a server that is on all day, but every hour I get this error, it does not affect its operation, but it is already bothering. It's as if the connection expires and it tries to reconnect, but the http request is still in use. I believe that right after performing a login, getting what I need, I should terminate the connection. But I didn't quite understand how I can do this... |
Beta Was this translation helpful? Give feedback.
-
Hello! We are using the GodotFirebase plugin in our project to connect with the Firebase Realtime Database. It looks like generally this plugin keeps an open connection to the database and gets pushed updates via the Firebase SSE.
However, in our case, we do periodically want to disconnect from the database (as we don't need our data to be refreshed often). I was wondering if there is a recommended way to gracefully disconnect / close the Firebase database connection. I had thought that potentially calling
queue_free()
on the database references might release the connection, but we are not sure if that is having the desired effect.Any suggestions?
Beta Was this translation helpful? Give feedback.
All reactions