Removed all traces of sockets, real-time collab and other stuff.
This commit is contained in:
@@ -12,6 +12,6 @@ export default function indexerSyscalls(space: Space): SysCallMapping {
|
||||
"batchSet",
|
||||
"delete",
|
||||
],
|
||||
(name, ...args) => space.wsCall(`index.${name}`, ...args)
|
||||
(ctx, name, ...args) => space.remoteSyscall(ctx.plug, `index.${name}`, args)
|
||||
);
|
||||
}
|
||||
|
||||
@@ -3,8 +3,8 @@ import { PageMeta } from "../types";
|
||||
import { SysCallMapping } from "../../plugos/system";
|
||||
|
||||
export default (editor: Editor): SysCallMapping => ({
|
||||
listPages: (): PageMeta[] => {
|
||||
return [...editor.viewState.allPages];
|
||||
listPages: async (): Promise<PageMeta[]> => {
|
||||
return [...(await editor.space.listPages())];
|
||||
},
|
||||
readPage: async (
|
||||
ctx,
|
||||
|
||||
@@ -7,7 +7,7 @@ export function systemSyscalls(space: Space): SysCallMapping {
|
||||
if (!ctx.plug) {
|
||||
throw Error("No plug associated with context");
|
||||
}
|
||||
return space.wsCall("invokeFunction", ctx.plug.name, name, ...args);
|
||||
return space.remoteInvoke(ctx.plug, name, args);
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user