more progress on websockets

This commit is contained in:
AAGaming
2023-11-10 16:47:22 -05:00
committed by marios8543
parent 34d1a34b10
commit 5e1e035bc2
4 changed files with 66 additions and 58 deletions

View File

@@ -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 {