summaryrefslogtreecommitdiff
path: root/frontend/src/wsrouter.ts
diff options
context:
space:
mode:
authorAAGaming <aagaming@riseup.net>2023-11-10 16:47:22 -0500
committermarios8543 <marios8543@gmail.com>2023-11-14 00:04:56 +0200
commit5e1e035bc27f99b334827b727da593f0a24ded48 (patch)
tree52e668bcf3f69829d956b8a2963521f0f0d3963c /frontend/src/wsrouter.ts
parent34d1a34b10f4386865f3c241c5ae4026d2bfd8bd (diff)
downloaddecky-loader-5e1e035bc27f99b334827b727da593f0a24ded48.tar.gz
decky-loader-5e1e035bc27f99b334827b727da593f0a24ded48.zip
more progress on websockets
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 {