I am retrieving around 20000 rics as a batch from the websocket api. due to the fact, that the message size is limited, I need to request the items in individual requests of 2000 rics each.
I am not really sure when I can send a new request to the websocket api, e.g. if I send the second request too fast, I get the error "Cannot request new item on open stream".
{ "Type": "Status", "State": { "Stream": "Closed", "Data": "Suspect", "Text": "Request Rejected: Cannot request new item on open stream.", "Code": "AlreadyOpen" },
I tried to wait for the Status message, and then send a new request, but this doesnt work.
[{ "Type": "Status", "State": { "Stream": "Closed", "Data": "Ok", "Text": "Processed 2000 total items from Batch Request. 2000 Ok." }, "ID": 2 }]