🚇 Adds hasSubcribers to event socket for early return

This commit is contained in:
Rune Harlyk
2024-08-02 15:35:36 +02:00
committed by Rune Harlyk
parent d182e9e925
commit e7f78c52da
3 changed files with 5 additions and 0 deletions
+2
View File
@@ -22,6 +22,8 @@ class EventSocket {
void begin();
bool hasSubscribers(const char *event);
void onEvent(String event, EventCallback callback);
void onSubscribe(String event, SubscribeCallback callback);