// All material copyright Esri, All Rights Reserved, unless otherwise specified. // See https://js.arcgis.com/4.30/esri/copyright.txt for details. //>>built define("../../chunks/tslib.es6 ../../core/Error ../../core/Evented ../../core/accessorSupport/decorators/property ../../core/has ../../core/Logger ../../core/RandomLCG ../../core/accessorSupport/decorators/subclass".split(" "),function(c,d,a,e,g,h,k,f){a=class extends a.EventedAccessor{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new d("stream-connection",this.errorString):null}onFeature(b){this.emit("data-received",b)}onMessage(b){this.emit("message-received",b)}}; c.__decorate([e.property({readOnly:!0})],a.prototype,"connectionError",null);return a=c.__decorate([f.subclass("esri.layers.support.StreamConnection")],a)});