From 5e1e035bc27f99b334827b727da593f0a24ded48 Mon Sep 17 00:00:00 2001 From: AAGaming Date: Fri, 10 Nov 2023 16:47:22 -0500 Subject: more progress on websockets --- frontend/src/wsrouter.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) (limited to 'frontend/src') diff --git a/frontend/src/wsrouter.ts b/frontend/src/wsrouter.ts index e50b06a7..e1d766c3 100644 --- a/frontend/src/wsrouter.ts +++ b/frontend/src/wsrouter.ts @@ -7,14 +7,12 @@ declare global { } enum MessageType { - // Call-reply - CALL, - REPLY, - ERROR, - // Pub/sub - // SUBSCRIBE, - // UNSUBSCRIBE, - // PUBLISH + ERROR = -1, + // Call-reply, Frontend -> Backend + CALL = 0, + REPLY = 1, + // Pub/Sub, Backend -> Frontend + EVENT = 3, } interface CallMessage { -- cgit v1.2.3