  
 #pragma GCC optimize ("-O2")           // O0 none, O1 Moderate optimization, 02, Full optimization, O3, as O2 plus attempts to vectorize loops, Os Optimize space
 #include <ESP8266WiFi.h>
+#include <WebSockets.h>
+#include <WebSocketsServer.h>
+#include <WebSocketsClient.h>
 #include <FS.h>
 #include <DNSServer.h>
 #include <Ticker.h>

    }
    currentClient = 0;
  }
 
  if (!req.length()){// empty request
      return;
      }

  dnsServer.start(DNS_PORT, "*", apIP);// default FHTbot.com  //must use '.com, .org etc..' and cant use '@ or _ etc...' ! . Use "*" to divert all **VALID** names
  server.begin();
  server.setNoDelay(true);
}

void setupWebsocket(){
  //start websocket
  webSocket.begin();
  webSocket.onEvent(webSocketEvent);
}

void initHardware()
