mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 14:50:03 -04:00
capitalize SetTransport
This commit is contained in:
parent
3fd8d4e293
commit
34ac32b3ca
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ export class BareMuxConnection {
|
||||||
this.worker = new WorkerConnection(workerPath);
|
this.worker = new WorkerConnection(workerPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
async setTransport(path: string, options: any[]) {
|
async SetTransport(path: string, options: any[]) {
|
||||||
await this.setManualTransport(`
|
await this.setManualTransport(`
|
||||||
const { default: BareTransport } = await import("${path}");
|
const { default: BareTransport } = await import("${path}");
|
||||||
return new BareTransport(${options.map(x => JSON.stringify(x)).join(", ")});
|
return new BareTransport(${options.map(x => JSON.stringify(x)).join(", ")});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue