From 8d8e5bbf2e1f46a4f7f1cb0e5e7a23ae409d6cb2 Mon Sep 17 00:00:00 2001 From: Spencer Pogorzelski <34356756+Scoder12@users.noreply.github.com> Date: Mon, 14 Aug 2023 13:59:27 -0700 Subject: [PATCH] fixup ts errors --- client/src/Connection.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/Connection.ts b/client/src/Connection.ts index ef07169..876d2b6 100644 --- a/client/src/Connection.ts +++ b/client/src/Connection.ts @@ -6,8 +6,8 @@ import { HTTPResponsePayload, S2CRequestType, S2CRequestTypes, - S2CWSClosePayload, Transport, + WSClosePayload, } from "protocol"; type OpenWSMeta = { @@ -96,7 +96,7 @@ export class Connection { case S2CRequestTypes.WSClose: { const socketMeta = this.openSockets[requestID]; if (!socketMeta) return; - const payload: S2CWSClosePayload = JSON.parse( + const payload: WSClosePayload = JSON.parse( new TextDecoder().decode(data.slice(cursor)) ); socketMeta.onclose(