TsgcWSPClient_Kafka › Methods › Subscribe
Subscribes to one or more topics.
procedure Subscribe(const aTopics: array of string);
Starts consuming the given topics. When a GroupId is configured in KafkaOptions, the client joins the consumer group and the broker assigns partitions to it. When no GroupId is set, the client assigns all partitions of the topics to itself. After subscribing, call Poll to fetch records or handle them in the OnKafkaMessage event. Use Unsubscribe to stop consuming.
oKafka.Subscribe(['my-topic']);