isClientCommand static method

bool isClientCommand(
  1. String command
)

Returns true if the command is a client command

Implementation

static bool isClientCommand(String command) {
  return [
    connect,
    stomp,
    send,
    subscribe,
    unsubscribe,
    ack,
    nack,
    begin,
    commit,
    abort,
    disconnect,
  ].contains(command);
}