/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{__decorate as e}from"tslib";import{property as t}from"../../core/accessorSupport/decorators.js";import{subclass as r}from"../../core/accessorSupport/decorators/subclass.js";import{getGeometryZScaler as o}from"../../geometry/support/zscale.js";import s from"./StreamConnection.js";let a=class extends s{constructor(e){super({}),this.connectionStatus="connected",this.errorString=null;const{geometryType:t,spatialReference:r,sourceSpatialReference:s}=e;this._featureZScaler=o(t,s,r)}normalizeCtorArgs(){return{}}updateCustomParameters(e){}sendMessageToSocket(e){}sendMessageToClient(e){if("type"in e)switch(e.type){case"features":case"featureResult":for(const t of e.features)null!=this._featureZScaler&&this._featureZScaler(t.geometry),this.onFeature(t)}this.onMessage(e)}};e([t()],a.prototype,"connectionStatus",void 0),e([t()],a.prototype,"errorString",void 0),a=e([r("esri.layers.support.ClientSideConnection")],a);export{a as ClientSideConnection};
