added #ifndef wrapper and default value for WS_MAX_PAYLOAD_LEN