hitLogger method
Implementation
Stream<T> hitLogger(String key, [String? client]) {
final controller = StreamController<T>();
HitLogger.log(key, type: HitType.init, client: client);
listen((event) {
HitLogger.log(key, type: HitType.listen, client: client, data: event);
controller.add(event);
});
return controller.stream;
}