pub fn stream_all_messages_with_callback_dispatch<C>(
context: C,
keep_alive: impl MaybeSend + 'static,
conversation_type: Option<ConversationType>,
consent_states: Option<Vec<ConsentState>>,
callback: impl FnMut(Result<StoredGroupMessage, SubscribeError>) + MaybeSend + 'static,
on_close: impl FnOnce() + MaybeSend + 'static,
) -> impl StreamHandle<StreamOutput = Result<(), SubscribeError>>where
C: XmtpSharedContext + 'static,
<C as CoreContext>::ApiClient: XmtpMlsBidiStreams + XmtpMlsStreams + ApiClientIdentity + Clone + Send + Sync + 'static,
<<C as CoreContext>::ApiClient as XmtpMlsBidiStreams>::SubscribeStream: 'static,Expand description
keep_alive lives until the subscription opens.