SocketChannel clientChannel = serverSocketChannel.accept();
clientChannel.configureBlocking(false);
clientChannel.socket().setTcpNoDelay(true);
// Регистрируем события
clientChannel.register(selector, SelectionKey.OP_WRITE | SelectionKey.OP_READ, new KeyAttach());
SelectionKey clientKey = clientChannel.keyFor(selector);
Logger.debug("New client %s.", clientChannel.getRemoteAddress());
clientUserMap.put(clientKey, new ClientUser("Guest"));
// Приветствие
sendMessage(clientKey, null, "Welcome to Java chat!");
} catch (IOException e) {