docs: public GeneralsApi onEvent(String event, Consumer<Object[]> listener, boolean onlyOnce) {
          Consumer<Object[]> socketListener = args -> {
              LOGGER.trace("Received {}: {}", event, Arrays.toString(args));
              listener.accept(args);
          };
          if (onlyOnce) {
              socket.once(event, socketListener);
          } else {
              socket.on(event, socketListener);
          }
          return this;
      }