Closed lamolivier closed 1 year ago
can you share a fully reproducible code snippet to recreate the issue? otherwise it's hard to understand what in your code might be causing this.
what happens if you just console.log(event)
in onEvents
, are you getting the proper event data there?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed in 14 days if no further activity occurs. Thank you for your contributions. If you believe this was a mistake, please comment.
Hello,
I am using the SDK for listening at transactions on a few collections as follows (I am using onEvents because I plan to listen to more than just the item_sold event_type):
However, I get the following outputs when running my code:
As you can see, I print the number of listened transactions every two seconds. This happened after 30 minutes of run. It seems like the channel has been disconnecting so it throws the ERROR log and reconnects automatically with the INFO log.
Can you confirm that this is the case ? I modified the source code for the ERROR log as below and the ERROR log doesn't help. If the channels disconnect / reconnect automatically, do you have a solution for preventing this behaviour ? It would be nice so that we do not miss any events during the disconnecting/reconnecting process.