]> Repos - mime-chat/commitdiff
updated protocols
authorAndrew Gundersen <gundersena@xavier.edu>
Sun, 11 Jul 2021 16:55:38 +0000 (11:55 -0500)
committerAndrew Gundersen <gundersena@xavier.edu>
Sun, 11 Jul 2021 16:55:38 +0000 (11:55 -0500)
src/composables/useWebsockets.ts
src/session.ts
src/types.ts

index ed0973e2ee27a52faeb621c09a3b776e971de2f8..13d47c355effdf8712b9be3d2ded9c8a7222a688 100644 (file)
@@ -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;
     },
 ) {
 
index f4f3b607f33492853ba4f0922d561434625451fa..cbf2b103234ed586bbf94f5cbb8b1c196cb2c845 100644 (file)
@@ -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();
 
index 95f0df3929f02a633f537107ea9155ee4aafbfa9..ba360564c35b60c5260ef670d5cf26bc1fad66ac 100644 (file)
@@ -4,7 +4,7 @@
  */
 interface ClientProtocol {
     header: string;
-    body: Init | Update
+    body: Init | Update;
 }
 
 /**