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
Currently, .forward() returns a single info object which is a summary of responses for all sparks. It does not indicate which particular spark(s) from the input list were sent to successfully.
Here is how it should be:
['L1mXUWv', 'L1mXUX9', '234fwfrewrw423#%#$']
So, if above is the input list of sparks and assuming that 3rd item is invalid/disconnected/non-existent, the output should be similar to:
[ 'ok','ok',null ]
So, client could store the ACKs at some place and re-attempt the ones that failed (for any reason).
Just to be doubly sure, index of results must match the corresponding sparks in input list.
Edit:
Another option is to extend the 'info' object by adding 'sparks' array that is a list of spark(s) where msg was successfully sent.
Here is something that I put together (not tested yet) that actually extends the existing 'info' object by including spark IDs, so we're not breaking anything hopefully.
Currently, .forward() returns a single info object which is a summary of responses for all sparks. It does not indicate which particular spark(s) from the input list were sent to successfully.
Here is how it should be:
['L1mXUWv', 'L1mXUX9', '234fwfrewrw423#%#$']
So, if above is the input list of sparks and assuming that 3rd item is invalid/disconnected/non-existent, the output should be similar to:
[ 'ok','ok',null ]
So, client could store the ACKs at some place and re-attempt the ones that failed (for any reason).
Just to be doubly sure, index of results must match the corresponding sparks in input list.
Edit:
Another option is to extend the 'info' object by adding 'sparks' array that is a list of spark(s) where msg was successfully sent.
Example: { ok: true, send: 2, sparks:['L1mXUWv', 'L1mXUX9'] }
The text was updated successfully, but these errors were encountered: