Create a HonuaClient on the native gRPC-Web transport where the
server offers it, with GeoServices REST as the compatibility transport.
The probe is one unary DescribeService call with an empty service ID. Any
gRPC-Web answer, including the expected INVALID_ARGUMENT, shows the server
serves the native contract. A response that is not gRPC-Web (for example an
HTML 404 from a REST-only server), no response within the probe timeout after
the request is sent (an unreachable host, or a CORS policy that does not admit
gRPC-Web), or a gRPC runtime that cannot be loaded select REST. Check
client.isGrpcWeb to see which transport was chosen.
Browser bundles: import createHonuaClient from @honua/sdk-js/grpc-web.
This variant loads the peers through a runtime specifier that bundlers do not
follow, so in a bundled browser app it always selects REST.
The caller's abort reason when signal aborts during the probe, and
any error raised before the probe request is sent (for example a failing
auth provider), so a local failure is never read as a REST-only server.
Create a HonuaClient on the native gRPC-Web transport where the server offers it, with GeoServices REST as the compatibility transport.
The probe is one unary
DescribeServicecall with an empty service ID. Any gRPC-Web answer, including the expectedINVALID_ARGUMENT, shows the server serves the native contract. A response that is not gRPC-Web (for example an HTML 404 from a REST-only server), no response within the probe timeout after the request is sent (an unreachable host, or a CORS policy that does not admit gRPC-Web), or a gRPC runtime that cannot be loaded select REST. Checkclient.isGrpcWebto see which transport was chosen.Browser bundles: import
createHonuaClientfrom@honua/sdk-js/grpc-web. This variant loads the peers through a runtime specifier that bundlers do not follow, so in a bundled browser app it always selects REST.