#pragma once

#include "socket_adapter_proto2json.h"

#include <saas/protos/rtyserver.pb.h>

class TSocketAdapterProto2JsonRef: public TSocketAdapterProto2Json {
public:
    TSocketAdapterProto2JsonRef(const TString& service, IInputStream& input, IOutputStream& output, bool realtime);
    virtual void WriteMessage(const ::google::protobuf::Message& message, const TString& request="") const override;
    virtual void WriteMessage(const TString& message, const TString& request) const override;
    virtual ~TSocketAdapterProto2JsonRef() override {}
};

