web-serial-rxjs API Documentation
    Preparing search index...

    English Guide

    Hand-written Markdown Guide for using @gurezo/web-serial-rxjs. For exhaustive public API types, parameters, and return values, see the English TypeDoc API Reference.

    The canonical documentation layout is defined in ARCHITECTURE.md.

    1. OverviewSerialSession public surface, role of state$ / errors$, minimal sample
    2. Quick Start — installation, connect, receive/send, disconnect/dispose, error handling
    3. Advanced Usage — line framing, request/response-style flows, recovery
    4. API concepts and design notes — options tables, SerialError, type supplements (not a TypeDoc substitute)

    When migrating existing code:

    Document Use it for
    Overview Public surface quick reference, feature summary, minimal sample
    Quick Start Basic flow from installation through disconnect
    Advanced Usage Application patterns and RxJS recipes
    API concepts and design notes Options, error codes, and type tables
    v2 → v3 Migration Steps to adopt v3 canonical API
    v1 → v2 Migration Replacements for removed v1 APIs
    Phase 5 (archive) Legacy v1 documentation reference
    • state$ — canonical lifecycle source. Branch on state.status with SerialSessionStatus; use state.portInfo when connected
    • errors$ — canonical fatal / non-fatal error event channel. Branch with SerialError.is(SerialErrorCode.*)
    • Deprecated convenienceisConnected$, portInfo$, getPortInfo() remain in v3.x; prefer state$ narrowing in new code