removeTopic<T> abstract method

bool removeTopic<T>({
  1. List<String>? paths,
  2. String? separator,
})

Removes the node of a topic and forgets its value, even on a model bus.

Unlike the automatic cleanup after the last subscription, this ignores isModelBus and a KeepAliveNode pin: a transport node cancels its broker subscription. Active listeners receive done. A registered handler is kept; remove it with EventBusHandlers.removeHandler when the whole topic has to be forgotten. A model bus creates the node again on the next fire, request or listen.

Returns true when a node was removed.

Implementation

bool removeTopic<T>({List<String>? paths, String? separator});