 void onConnect(WebSocket &socket) {
   Serial.println("onConnect called");
 }
-
 
 // You must have at least one function with the following signature.
 // It will be called by the server when a data frame is received.

#include <SPI.h>
#include <Ethernet.h>
#include <RCSwitch.h>

// Enabe debug tracing to Serial port.
#define DEBUG

// Here we define a maximum framelength to 64 bytes. Default is 256.
#define MAX_FRAME_LENGTH 64

#include <WebSocket.h>

RCSwitch mySwitch = RCSwitch();

  
  // Do other stuff here, but don't hang or cause long delays.
  delay(100);
  //if (wsServer.isConnected()) {
    //wsServer.send("abc123", 6);
  //}
  
  //reset watchdog timer
  wdt_reset();
}
