#pragma once

#include <mutex>
#include <condition_variable>
#include <iostream>
#include <string>
#include <vector>
#include <ixwebsocket/IXWebSocket.h>
#include <memory>
#include <nlohmann/json.hpp>
#include "nodes/reConfigurator/reConfigurator.h"

class msgWriter {
public:
    explicit msgWriter(const nlohmann::json &msg, const std::string &url);
    void msgWrite(reNode *re);

protected:
    const nlohmann::json message;
    const std::string source;
};