samurai jack
samurai jack

Reputation: 411

Do Firebase listeners expire?

What happens if I have not detached my firebase listeners?

Are they going to listen forever or do they have an expiration date?

Upvotes: 3

Views: 273

Answers (1)

Frank van Puffelen
Frank van Puffelen

Reputation: 600126

Firebase Database listeners stay active until:

  1. you remove them in code
  2. the app closes the socket that they depend on. In this case the client will try to reestablish a connection when it is active.

Upvotes: 4

Related Questions