From cda3bab739c924f73a01cea041ac561e7de41a2c Mon Sep 17 00:00:00 2001 From: Andrew Gundersen Date: Sun, 11 Jul 2021 11:55:38 -0500 Subject: [PATCH] updated protocols --- src/composables/useWebsockets.ts | 8 ++++---- src/session.ts | 2 +- src/types.ts | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/composables/useWebsockets.ts b/src/composables/useWebsockets.ts index ed0973e..13d47c3 100644 --- a/src/composables/useWebsockets.ts +++ b/src/composables/useWebsockets.ts @@ -13,10 +13,10 @@ export default function useWebSockets( messageCallback: (message: string) => void, connectionStatusCallback: (status: string) => void, statusOptions?: { - openMessage: string, - pongMessage: string, - closeMessage: string, - pingErrorMessage: string, + openMessage: string; + pongMessage: string; + closeMessage: string; + pingErrorMessage: string; }, ) { diff --git a/src/session.ts b/src/session.ts index f4f3b60..cbf2b10 100644 --- a/src/session.ts +++ b/src/session.ts @@ -6,7 +6,7 @@ import useWebsockets from "./composables/useWebsockets"; import { backgroundMitt, ipcEmit } from "@/composables/useEmitter"; // UI state -let uiState = new UIState() +const uiState = new UIState() // let audio = new Audio(); diff --git a/src/types.ts b/src/types.ts index 95f0df3..ba36056 100644 --- a/src/types.ts +++ b/src/types.ts @@ -4,7 +4,7 @@ */ interface ClientProtocol { header: string; - body: Init | Update + body: Init | Update; } /** -- 2.43.0