I am trying to receive all events and it seems that it overflow the buffer. What should be the maximum buffer size used in receiving the event data? Thanks,
You can only get the last 1000 events from syncthing, events older than that roll off.
It is not only the number of events, What I found from the returned event json text sometimes is not a complete json block — it was truncated and only part of the json block showed in the string.
You’re doing something wrong. We store events as event objects, not JSON, so it cannot be truncated unless the connection or syncthing gets abruptly terminated, or your buffer you receive the response into is too small.