connect-bidi-web
    Preparing search index...

    Function createCompositeTransport

    • createCompositeTransport creates a Transport that delegates Unary RPCs to one transport, and Streaming RPCs (Client, Server, Bidi) to another.

      This is typically used to route Unary RPCs over standard HTTP/1.1 or HTTP/2 (using createConnectTransport) for better observability, caching, and proxy support, while using WebTransport or WebSockets for streaming RPCs.

      Parameters

      • unaryTransport: Transport
      • streamingTransport: Transport

      Returns Transport