diff --git a/src/client/LocalServer.ts b/src/client/LocalServer.ts index 24eed2bff..e250be225 100644 --- a/src/client/LocalServer.ts +++ b/src/client/LocalServer.ts @@ -235,7 +235,7 @@ export class LocalServer { } } -async function compress(data: string): Promise { +async function compress(data: string): Promise { const stream = new CompressionStream("gzip"); const writer = stream.writable.getWriter(); const reader = stream.readable.getReader(); @@ -264,5 +264,5 @@ async function compress(data: string): Promise { offset += chunk.length; } - return compressedData; + return compressedData.buffer; }