We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
https://discord.com/channels/1139617727565271160/1371088155851100221/1372290802797117644
import { startWorker } from "jazz-nodejs"; import { WorkerAccount } from "./schema"; let jazz: Awaited<ReturnType<typeof startWorker>>; export const getJazzWorker = async () => { if (jazz) { console.log("Jazz worker check connection"); await jazz.waitForConnection(); console.log("Jazz worker connected"); return jazz.worker as WorkerAccount; } console.log("Starting jazz worker"); const res = await startWorker({ AccountSchema: WorkerAccount, accountID: process.env.JAZZ_ACCOUNT_ID, accountSecret: process.env.JAZZ_ACCOUNT_SECRET, }); jazz = res; return res.worker as WorkerAccount; };
The text was updated successfully, but these errors were encountered:
No branches or pull requests
https://discord.com/channels/1139617727565271160/1371088155851100221/1372290802797117644
The text was updated successfully, but these errors were encountered: