diff --git a/common/syscalls/system.ts b/common/syscalls/system.ts index a24c8566..5c02f110 100644 --- a/common/syscalls/system.ts +++ b/common/syscalls/system.ts @@ -75,6 +75,13 @@ export function systemSyscalls( [fullName, ...args], ); }, + "system.serverSyscall": (_ctx, name: string, ...args: any[]) => { + if (!client) { + return system.localSyscall(name, args); + } else { + return proxySyscall({}, client!.httpSpacePrimitives, name, args); + } + }, "system.invokeCommand": (_ctx, name: string, args?: string[]) => { if (!client) { throw new Error("Not supported");