unsubscribe

Description

public function unsubscribe(): void {}

Unsubscribe from the current subscriptions

Example

$conf = SimpleKafkaClient\Configuration();
$conf->set('metadata.broker.list', 'kafka:9092');
$consumer = new SimpleKafkaClient\Consumer($conf);
$consumer->subscribe(['test-topic']);
$consumer->unsubscribe();