/* COPYRIGHT Esri - https://js.arcgis.com/5.0.18/LICENSE.txt */
import{__decorate as r}from"tslib";import e from"../../core/Error.js";import{EventedAccessor as t}from"../../core/Evented.js";import{property as o,subclass as s}from"../../core/accessorSupport/decorators.js";let n=class extends t{destroy(){this.emit("destroy")}get connectionError(){return this.errorString?new e("stream-connection",this.errorString):null}onFeature(r){this.emit("data-received",r)}onMessage(r){this.emit("message-received",r)}};r([o({readOnly:!0})],n.prototype,"connectionError",null),n=r([s("esri.layers.support.StreamConnection")],n);export{n as default};
