mobizt / Firebase-ESP32

[DEPRECATED]🔥 Firebase RTDB Arduino Library for ESP32. The complete, fast, secured and reliable Firebase Arduino client library that supports CRUD (create, read, update, delete) and Stream operations.
MIT License
413 stars 119 forks source link

data.eventType() always returns "put" #153

Closed casvanluijtelaar closed 3 years ago

casvanluijtelaar commented 3 years ago

Describe the bug No matter what action is taken on the realtime database when printing the StreamData dataType() method it will always return "put"

To Reproduce Steps to reproduce the behavior:

  1. run stream_callback example
  2. delete entry from your realtime database.
  3. observe data.eventType() print
  4. any action returns "put"

Expected behavior It's very important to me to see a clear distinction between "put" and delete" events.

Screenshots If applicable, add screenshots to help explain your problem.

IDE and its version:

mobizt commented 3 years ago

Please ask if you have the question or problem instead of set this issue to bug.

The event type is issued by Google not the library.

There are only 5 events that are available from the RTDB stream i.e. put, patch, keep-alive, cancel and auth_revoked.

Please read this doc for reference.