12345678910111213141516 |
- import { g as getWorkerState } from './chunk-mock-date.2917be60.mjs';
- import { w as withSafeTimers } from './chunk-utils-timers.b48455ed.mjs';
- const rpc = () => {
- const { rpc: rpc2 } = getWorkerState();
- return new Proxy(rpc2, {
- get(target, p, handler) {
- const sendCall = Reflect.get(target, p, handler);
- const safeSendCall = (...args) => withSafeTimers(() => sendCall(...args));
- safeSendCall.asEvent = sendCall.asEvent;
- return safeSendCall;
- }
- });
- };
- export { rpc as r };
|