           sendFile(fileString);
         }
 }
+/**
+ * Handles Websocket reception, deciding what needs to be done vs the type of message.
+ */
+void webSocketEvent(uint8_t num, WStype_t type, uint8_t * payload, size_t payLength){
+  switch(type){
+    case WStype_DISCONNECTED:
+      //perform disconnection events (i.e. send bot to idle.)
+      Serial.println(num + " Disconnected!\n");
+      break;
+    case WStype_CONNECTED:{
+      //HANDLE NEW CLIENT CONNECTION
+      //IPAddress ip = webSocket.remoteIP(num);
+      //Serial.println(num + " Connected from "+ ip[0] + "."+ip[1]+"."+ip[2]+"."+ip[3]+" url: "+payload+"\n");
+      //ACK connection to client
+      webSocket.sendTXT(num, "Connected");
+      break;
+    case WStype_TEXT:
+      //Perform actions based on a good payload.
+      //Serial.println(num + "get Text: "+ payload +"\n");
+      //executeRequest(payload);
+      break;
+    }
+  }
+}
 
 void setupWiFi()
 {

Ticker rBH;                            // right bumper hit reverse timer
WiFiServer server(80);
WiFiClient client;
DNSServer dnsServer;
Ticker HeartBeatTicker;
int distance = 500;

    }
    currentClient = 0;
  }
  executeRequest(req);
  //Loop WebSocket Server
  webSocket.loop();

}
void executeRequest(String req){
  
  if (!req.length()){// empty request
      return;
      }
