summaryrefslogtreecommitdiff
path: root/frontend/src/wsrouter.ts
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/src/wsrouter.ts')
-rw-r--r--frontend/src/wsrouter.ts14
1 files changed, 6 insertions, 8 deletions
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 {