This commit is contained in:
Spencer Pogorzelski 2023-08-18 14:24:09 -07:00
parent aa2355c164
commit edd83f54f9

View file

@ -107,6 +107,7 @@ export class AdriftBareClient extends Client {
constructor(private connection: Connection) { constructor(private connection: Connection) {
super(); super();
} }
async request( async request(
method: string, method: string,
requestHeaders: BareHeaders, requestHeaders: BareHeaders,
@ -115,7 +116,7 @@ export class AdriftBareClient extends Client {
cache: string | undefined, cache: string | undefined,
duplex: string | undefined, duplex: string | undefined,
signal: AbortSignal | undefined, signal: AbortSignal | undefined,
arrayBufferImpl: ArrayBufferConstructor, arrayBufferImpl: ArrayBufferConstructor
): Promise<BareResponse> { ): Promise<BareResponse> {
const bodyStream = createBodyStream(body, arrayBufferImpl); const bodyStream = createBodyStream(body, arrayBufferImpl);
let { payload, body: respRawBody } = await this.connection.httprequest( let { payload, body: respRawBody } = await this.connection.httprequest(
@ -155,7 +156,7 @@ export class AdriftBareClient extends Client {
onMeta: MetaCallback, onMeta: MetaCallback,
onReadyState: ReadyStateCallback, onReadyState: ReadyStateCallback,
webSocketImpl: WebSocketImpl, webSocketImpl: WebSocketImpl,
arrayBufferImpl: ArrayBufferConstructor, arrayBufferImpl: ArrayBufferConstructor
): WebSocket { ): WebSocket {
const ws = new webSocketImpl("ws:null", protocols); const ws = new webSocketImpl("ws:null", protocols);
// this will error. that's okay // this will error. that's okay