ruststream 0.7.3

Async messaging framework for Rust: broker-agnostic traits, router, codecs, and a conformance harness for broker authors.
Documentation
import React, {lazy, Suspense, type ReactNode} from 'react';
import {useAskAiSession} from './session';

// The panel and its Markdown renderer load on the first request to open it, so a page whose
// reader never asks carries none of that code.
const Panel = lazy(() => import('./Panel'));

export default function AskAiHost(): ReactNode {
  const {started, open} = useAskAiSession();
  if (!started) {
    return null;
  }
  return (
    <Suspense fallback={null}>
      <div hidden={!open}>
        <Panel />
      </div>
    </Suspense>
  );
}