mirror of
https://github.com/MercuryWorkshop/scramjet.git
synced 2025-05-14 06:50:01 -04:00
bare-mux support
This commit is contained in:
parent
8b2757b495
commit
5a8aa6698e
7 changed files with 36 additions and 16 deletions
|
@ -1,7 +1,7 @@
|
|||
importScripts("/scramjet.codecs.js");
|
||||
importScripts("/scramjet.config.js");
|
||||
importScripts("/scramjet.bundle.js");
|
||||
import { BareClient } from "@tomphttp/bare-client";
|
||||
import { BareClient } from "@mercuryworkshop/bare-mux";
|
||||
|
||||
declare global {
|
||||
interface Window {
|
||||
|
@ -13,7 +13,7 @@ self.ScramjetServiceWorker = class ScramjetServiceWorker {
|
|||
client: typeof BareClient.prototype;
|
||||
|
||||
constructor() {
|
||||
this.client = new BareClient(location.origin + self.__scramjet$config.bareServer);
|
||||
this.client = new BareClient();
|
||||
}
|
||||
|
||||
async fetch(event: FetchEvent) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue