public void run() {
        Console.log("[TCP] сlient started.");
        byte[] dataFromQueue;
        try {
            while (!done) {
                dataFromQueue = queue.take();
                if (dataFromQueue != null) {
                    send(dataFromQueue);
                    receive(data);
                }
            }
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        Console.log("[TCP] сlient stopped.");
    }