From e94cb17857c6ad8b24cc42dc818605613c1f99c6 Mon Sep 17 00:00:00 2001 From: Spencer Pogorzelski <34356756+Scoder12@users.noreply.github.com> Date: Mon, 14 Aug 2023 13:58:55 -0700 Subject: [PATCH] typo --- client/src/Connection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/src/Connection.ts b/client/src/Connection.ts index 1107dae..ef07169 100644 --- a/client/src/Connection.ts +++ b/client/src/Connection.ts @@ -213,7 +213,7 @@ export class Connection { const payloadJSON = JSON.stringify(payload); this.send( seq, - new TextEncoder().encode(payload), + new TextEncoder().encode(payloadJSON), C2SRequestTypes.WSClose ).catch((e) => { // At this point there is nothing left to clean up