@ObjectiveCName("parse:client:") static List<Message> parse(String message,DeepstreamClientAbstract client){
  List<Message> messages=new ArrayList<>();
  String[] rawMessages=message.split(MS);
  Message parsedMessage;
  for (  String rawMessage : rawMessages) {
    parsedMessage=parseMessage(rawMessage,client);
    if (parsedMessage != null) {
      messages.add(parsedMessage);
    }
  }
  return messages;
}

@ ObjectiveCName ( "parse:client:" ) static List < Message > parse ( String message , DeepstreamClientAbstract client ) { List < Message > messages = new ArrayList < > ( ) ; String [ ] rawMessages = message . split ( MS ) ; Message parsedMessage ; for ( String rawMessage : rawMessages ) { parsedMessage = parseMessage ( rawMessage , client ) ; if ( parsedMessage != null ) { messages . add ( parsedMessage ) ; } } return messages ; }
main interface method . receives a raw message string , containing one or more messages and returns an array of parsed message objects or null for invalid messages
