crosis
Version:
Crosis done just right
3 lines (2 loc) • 946 B
JavaScript
var h=Object.create;var n=Object.defineProperty;var p=Object.getOwnPropertyDescriptor;var a=Object.getOwnPropertyNames;var l=Object.getPrototypeOf,C=Object.prototype.hasOwnProperty;var m=(o,s)=>{for(var e in s)n(o,e,{get:s[e],enumerable:!0})},t=(o,s,e,i)=>{if(s&&typeof s=="object"||typeof s=="function")for(let r of a(s))!C.call(o,r)&&r!==e&&n(o,r,{get:()=>s[r],enumerable:!(i=p(s,r))||i.enumerable});return o};var d=(o,s,e)=>(e=o!=null?h(l(o)):{},t(s||!o||!o.__esModule?n(e,"default",{value:o,enumerable:!0}):e,o)),R=o=>t(n({},"__esModule",{value:!0}),o);var u={};m(u,{Channel:()=>g});module.exports=R(u);var c=d(require("@replit/protocol"),1);const f=c.default.api;class g{constructor(s,e,i,r){this.crosis=s,this.openChanRes=e,this.service=i,this.name=r}get id(){return this.openChanRes.id}send(...s){return s[0].channel=this.id,this.crosis.send(...s)}close(s){return this.crosis.closeChannel(this.id,s)}}
//# sourceMappingURL=channel.cjs.map