code: @Handler
      public void onInput(Input<CharBuffer> event, IOSubchannel channel) {
          if (!openChannels.contains(channel)) {
              return;
          }
          ManagedBuffer<CharBuffer> out = ManagedBuffer.wrap(
              CharBuffer.wrap(event.data()));
          out.position(out.limit());
          out.flip();
          if (out.backingBuffer().toString().compareToIgnoreCase("/quit") == 0) {
              channel.respond(new Close());
              return;
          }
          channel.respond(Output.fromSource(out, true));
      }
docs: Process the input data.
  
  @param event the event
  @param channel the channel