Skip to content

Kafka broker

KafkaBroker

Bases: Broker

Implementation of the broker for Kafka

createSubscription() async

Creates a subscription to a data stream.

RETURNS DESCRIPTION
None

disconnect() async

Closes the connection to the server.

RETURNS DESCRIPTION
None

get_message()

Get the published messages of the subscription.

RETURNS DESCRIPTION
iterator

An async iterator for the messages.

TYPE: AsyncIterator

publish_event(event) async

Publish an event to a connected data stream.

PARAMETER DESCRIPTION
event

The event to be published.

TYPE: Dict[str, Any]

RETURNS DESCRIPTION
None