ChannelHandler (@NotNull ChannelHandlerContext context) { SocketClient client = new SocketClient(context.channel()); context.channel().attr(ClientManagerKt.getCLIENT()).set(client); clientManager.getValue().addClient(client); connected(client, null); return new MyDecoder(client); }