Called with each frame the hub sends, before it is added to sent.
final void Function(Object frame)? onSend;