mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 14:50:03 -04:00
make baremuxconnection worker optional
This commit is contained in:
parent
ae92c58f21
commit
f90d159fac
1 changed files with 1 additions and 1 deletions
|
@ -98,7 +98,7 @@ export interface BareResponseFetch extends BareResponse {
|
||||||
export class BareMuxConnection {
|
export class BareMuxConnection {
|
||||||
worker: WorkerConnection;
|
worker: WorkerConnection;
|
||||||
|
|
||||||
constructor(worker: string | Promise<MessagePort> | MessagePort) {
|
constructor(worker?: string | Promise<MessagePort> | MessagePort) {
|
||||||
this.worker = new WorkerConnection(worker);
|
this.worker = new WorkerConnection(worker);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue