Skip to content

Commit

Permalink
add sdk to worker
Browse files Browse the repository at this point in the history
  • Loading branch information
laves committed Nov 3, 2023
1 parent 60c443a commit c135a82
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions binding/web/src/koala_worker.ts
Original file line number Diff line number Diff line change
Expand Up @@ -231,6 +231,7 @@ export class KoalaWorker {
options: workerOptions,
wasm: this._wasm,
wasmSimd: this._wasmSimd,
sdk: this._sdk,
});

return returnPromise;
Expand Down
1 change: 1 addition & 0 deletions binding/web/src/koala_worker_handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ const initRequest = async (request: KoalaWorkerInitRequest): Promise<any> => {
try {
Koala.setWasm(request.wasm);
Koala.setWasmSimd(request.wasmSimd);
Koala.setSdk(request.sdk);
koala = await Koala._init(
request.accessKey,
processCallback,
Expand Down
1 change: 1 addition & 0 deletions binding/web/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ export type KoalaWorkerInitRequest = {
options: KoalaOptions;
wasm: string;
wasmSimd: string;
sdk: string;
};

export type KoalaWorkerProcessRequest = {
Expand Down

0 comments on commit c135a82

Please sign in to comment.