Removed all traces of sockets, real-time collab and other stuff.

This commit is contained in:
Zef Hemel
2022-03-31 14:28:07 +02:00
parent 4525d60964
commit 859657f8b8
41 changed files with 796 additions and 1691 deletions
+1 -1
View File
@@ -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)
);
}
+2 -2
View File
@@ -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,
+1 -1
View File
@@ -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);
},
};
}