🪄 Updates eventsocket protocol
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user