No More Collab. Fixes #449
* Fully removes real-time collaboration * URL scheme rewrite
This commit is contained in:
@@ -1,20 +0,0 @@
|
||||
import { SysCallMapping } from "../../plugos/system.ts";
|
||||
import type { Editor } from "../editor.tsx";
|
||||
|
||||
export function collabSyscalls(editor: Editor): SysCallMapping {
|
||||
return {
|
||||
"collab.start": (
|
||||
_ctx,
|
||||
serverUrl: string,
|
||||
token: string,
|
||||
username: string,
|
||||
) => {
|
||||
editor.startCollab(serverUrl, token, username);
|
||||
},
|
||||
"collab.stop": (
|
||||
_ctx,
|
||||
) => {
|
||||
editor.stopCollab();
|
||||
},
|
||||
};
|
||||
}
|
||||
@@ -21,7 +21,7 @@ export function sandboxFetchSyscalls(
|
||||
return performLocalFetch(url, options);
|
||||
}
|
||||
const resp = httpSpacePrimitives.authenticatedFetch(
|
||||
httpSpacePrimitives.url,
|
||||
`${httpSpacePrimitives.url}/.rpc`,
|
||||
{
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
|
||||
@@ -14,7 +14,7 @@ export function shellSyscalls(
|
||||
throw new Error("Not supported in fully local mode");
|
||||
}
|
||||
const resp = httpSpacePrimitives.authenticatedFetch(
|
||||
httpSpacePrimitives.url,
|
||||
`${httpSpacePrimitives.url}/.rpc`,
|
||||
{
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
|
||||
Reference in New Issue
Block a user