code: @Nonnull
    public <T> Optional<T> lastEventId(final Class<T> type) {
      return lastEventId.toOptional(type);
    }
docs: Server sent event will send a Last-Event-ID header if the server goes down.
  
  @param type Last event id type.
  @param <T> Event id type.
  @return Last event id.