Created new class based on the WebSockets server class (no logic yet)

This commit is contained in:
anschrammh 2020-02-26 11:08:20 +01:00
parent dacfb6d4d1
commit c0e5870cb6
2 changed files with 19 additions and 0 deletions

View File

@ -0,0 +1,6 @@
#include "DashboardWSServer.h"
DashboardWSServer::DashboardWSServer(uint16_t port, String origin, String protocol) : WebSocketsServer(port, origin, protocol)
{
}

View File

@ -0,0 +1,13 @@
#ifndef DASHBOARDWSSERVER_H
#define DASHBOARDWSSERVER_H
#include <WebSocketsServer.h>
class DashboardWSServer : public WebSocketsServer
{
public:
DashboardWSServer(uint16_t port, String origin = "", String protocol = "arduino");
protected:
private:
};
#endif //DASHBOARDWSSERVER_H