@Override
    public void run() {

        try {

            input = new BufferedReader(new InputStreamReader(socket.getInputStream()));

            while (true) {
                try {
                    client.onReadLine(input.readLine());
                } catch (IOException e) {
                    e.printStackTrace();
                }
            }
        } catch (IOException e) {
            e.printStackTrace();
        }
    }