You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey,
First of all thanks for the awesome library, i really love it.
I use webhooks and get large response data(about 8KB) and I use the Subscription handler you did in the example. It works fine except that the parse() function returns true not only when whole data was recieved. I counted it with a variable and for a 8500 Byte hook response the code in the if(parser.parse()) condition ran 8 times. Is there any way i can check its the last piece of the data I just recieved so the condition will be true once per every webhook response? I could count the "{" and "}" characters to be sure I recieved the whole JSON, but I'm wondering should the parse function return true when its not a full object or is there a better way to find the end of the JSON than counting "{" and "}".
Thanks,
Levi
The text was updated successfully, but these errors were encountered:
Hey,
First of all thanks for the awesome library, i really love it.
I use webhooks and get large response data(about 8KB) and I use the Subscription handler you did in the example. It works fine except that the parse() function returns true not only when whole data was recieved. I counted it with a variable and for a 8500 Byte hook response the code in the if(parser.parse()) condition ran 8 times. Is there any way i can check its the last piece of the data I just recieved so the condition will be true once per every webhook response? I could count the "{" and "}" characters to be sure I recieved the whole JSON, but I'm wondering should the parse function return true when its not a full object or is there a better way to find the end of the JSON than counting "{" and "}".
Thanks,
Levi
The text was updated successfully, but these errors were encountered: