I'm attempting to rewrite a JS API Widget that was written in 3x in 4x.
The widget uses a StreamLayer's 'graphic-add' event to process features/graphics retrieved from the stream.
However I saw that there's no analogous event in 4x's StreamLayer or StreamLayerView. I tried 'data-received' but it doesn't seem to fire when expected.
Are there examples on how to create and use a StreamLayer to process data streams from a custom socket layer in 4x?