Add method to handle NIO channel