isServerCommand static method

bool isServerCommand(
  1. String command
)

Returns true if the command is a server command

Implementation

static bool isServerCommand(String command) {
  return [
    connected,
    message,
    receipt,
    error,
  ].contains(command);
}