Sends frames via a crossbeam channel to a dedicated writer thread.
Maintains a reusable frame buffer that grows to high-water mark,
avoiding per-call allocation for frame construction.
Trait for receiving a BridgeResponse directly without re-serialization.
Production code uses a channel-based implementation; tests use a buffer-based one.
Trait for sending serialized frames to the host without holding a shared mutex.
Production code uses ChannelRuntimeEventSender (lock-free MPSC); tests use WriterRuntimeEventSender.
Shared call_id counter type. Sessions sharing a CallIdRouter must use the same
counter to prevent call_id collisions that cause BridgeResponses to be delivered
to the wrong session.