mirror of
https://github.com/tbnobody/OpenDTU.git
synced 2025-12-18 08:11:55 +01:00
17 lines
327 B
C
17 lines
327 B
C
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <ESPAsyncWebServer.h>
|
||
|
|
|
||
|
|
class WebApiWsConsoleClass {
|
||
|
|
public:
|
||
|
|
WebApiWsConsoleClass();
|
||
|
|
void init(AsyncWebServer* server);
|
||
|
|
void loop();
|
||
|
|
|
||
|
|
private:
|
||
|
|
AsyncWebServer* _server;
|
||
|
|
AsyncWebSocket _ws;
|
||
|
|
|
||
|
|
uint32_t _lastWsCleanup = 0;
|
||
|
|
};
|