🚇 Adds hasSubcribers to event socket for early return
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user