question

Upvotes
Accepted
646 6 13 25

Dex2Msg request ID

Is it possible to send custom request id field to Dex2Msg, so it will be returned with the response?

if not, is there a way to match original request with a response?

Thanks

eikoneikon-com-api
icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
Accepted
39.2k 75 11 27

If you submit multiple requests in rapid succession using the same instance of RData object, you will receive only one response for the last request sent. The 9 requests submitted prior to the last one will be canceled. To send 10 requests you either need to create 10 instances of RData object or you need to serialize the requests by creating an artificial loop between the requesting procedure and the callback for OnUpdate event and effectively waiting for the response to the previous request before sending the next one.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
4.6k 26 7 22

@igorg not out of the box. I am afraid you will have to create a wrapper class around RData where you can assign an external id.

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Upvotes
646 6 13 25

I'm no sure why a wrapper will help... I'm sending 10 requests and not waiting for the responses. At some point Invoke function starts to receive the data. Is there a guarantee that responses will come in the same orders as the requests are sent?

icon clock
10 |1500

Up to 2 attachments (including images) can be used with a maximum of 5.0 MiB each and 10.0 MiB total.

Click below to post an Idea Post Idea