🪄 Updates eventsocket protocol

This commit is contained in:
Rune Harlyk
2024-06-18 16:03:07 +02:00
committed by Rune Harlyk
parent e4ea3992b3
commit 283c420f98
4 changed files with 1443 additions and 1367 deletions
+9
View File
@@ -10,6 +10,15 @@
#define EVENT_SERVICE_PATH "/ws/events"
enum message_type_t {
CONNECT = 0,
DISCONNECT = 1,
EVENT = 2,
PING = 3,
PONG = 4,
BINARY_EVENT = 5
};
typedef std::function<void(JsonObject &root, int originId)> EventCallback;
typedef std::function<void(const String &originId, bool sync)> SubscribeCallback;