code: public void sendBasicMessageAsync(Session session, BasicMessage msg) {
          String text = ApiDeserializer.toHawkularFormat(msg);
          sendTextAsync(session, text);
      }
docs: Converts the given message to JSON and sends that JSON text to clients asynchronously.
  
  @param session the client session where the JSON message will be sent
  @param msg the message to be converted to JSON and sent