"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.LoopbackTransport=void 0;const shared_1=require("../_deps/shared/index.js");class LoopbackTransport{sent=[];handlers=[];async send(s,e){this.sent.push({envelope:s,to:e});for(const e of this.handlers)e(s);return(0,shared_1.ok)(void 0)}onReceive(s){this.handlers.push(s)}dispose(){this.handlers=[]}}exports.LoopbackTransport=LoopbackTransport;