code: @Override
      public void processTextMessage(WebSocketChannel channel, String message) {
          LOG.entering(CLASS_NAME, "send", message);
  
          WebSocketCompositeChannel parent = (WebSocketCompositeChannel)channel;
          if (parent.readyState != ReadyState.OPEN) {
              LOG.warning("Attempt to post message on unopened or closed web socket");
              throw new IllegalStateException("Attempt to post message on unopened or closed web socket");
          }
          
          WebSocketSelectedChannel selectedChannel = parent.selectedChannel;
          selectedChannel.handler.processTextMessage(selectedChannel, message);
      }
docs: Writes the message to the WebSocket.
  
  @param message
  String to be written
  @throws Exception
  if contents cannot be written successfully