this might help with the memory issues..??

This commit is contained in:
Lee
2024-10-09 17:27:37 +01:00
parent d0e4e1553b
commit 1faf896c08
8 changed files with 4 additions and 28 deletions

View File

@ -1,16 +0,0 @@
import * as Comlink from "comlink";
import { scoresaberService } from "@ssr/common/service/impl/scoresaber";
export interface WorkerApi {
getPlayerExample: typeof getPlayerExample;
}
const workerApi: WorkerApi = {
getPlayerExample: getPlayerExample,
};
async function getPlayerExample() {
return await scoresaberService.lookupPlayer("76561198449412074");
}
Comlink.expose(workerApi);

View File

@ -1,5 +0,0 @@
import * as Comlink from "comlink";
import { WorkerApi } from "@/common/worker/worker";
export const scoresaberReloadedWorker = () =>
Comlink.wrap<WorkerApi>(new Worker(new URL("./worker.ts", import.meta.url)));