There seems to be an issue with StreamLayer (ArcGIS SDK 4.29.10), specifically when you send client-side features a single time. I want to say it's a timing issue, because wrapping the sendMessageToClient in a setTimeout with a 1000ms wait fixes the issue.Reproduced the issue here: https://codepen.io/addypizza/pen/bGJPpEgNotice that if you wrap the above sendMessageToClient call in a 1000ms setTimeout, it works.
Hi there,
You need to wait for the StreamLayer is loaded and its layerView is in place. At 4.29, you need to wait for StreamLayerView.updating becomes false once at the time of load. At 4.30, you will only need to wait for the StreamLayerView is created.
In any case see this thread - https://community.esri.com/t5/arcgis-javascript-maps-sdk-questions/first-calls-to-sendmessagetoclient-not-used/m-p/1407481#M84259
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.