CodementorIO / rest-firebase

Ruby Firebase REST API client built on top of rest-core
Apache License 2.0
107 stars 22 forks source link

event source returns whole list instead of triggered data #18

Closed VishalTaj closed 7 years ago

VishalTaj commented 7 years ago

Hello, i am using this gem to stream over my firebase for my chat applicationin order to do some business logic. before when some event triggers at the firebase @on.message method gaved me data as

{ "path":"/location/to/messages", "data":{ "user_id":"xxx", "message":"testing","type":"text"} }

but now when something triggers at the firebase it is returning whole chat list inside data and path as "/"

godfat commented 7 years ago

I think this depends on how you put the data. Did you put the whole chat list to "/"? Otherwise it's probably a change from firebase server.

godfat commented 7 years ago

What do you mean by pinging?

VishalTaj commented 7 years ago

i'm pushing to firebase sub location only.

godfat commented 7 years ago

Then I have no idea :( This is fully depending on Firebase server. The client didn't really do anything here.

VishalTaj commented 7 years ago

@godfat Thanks anyways :(

godfat commented 7 years ago

No problems. Let me know if you find there's anything the client could do.