mirror of
https://github.com/MercuryWorkshop/bare-mux.git
synced 2025-05-14 06:40:02 -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 {
|
||||
worker: WorkerConnection;
|
||||
|
||||
constructor(worker: string | Promise<MessagePort> | MessagePort) {
|
||||
constructor(worker?: string | Promise<MessagePort> | MessagePort) {
|
||||
this.worker = new WorkerConnection(worker);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue