Skip to main content

createGrpcWebTransport

@iota/grpc


@iota/grpc / createGrpcWebTransport

Function: createGrpcWebTransport()

createGrpcWebTransport(_options): Transport

Defined in: sdk/grpc/src/transport.ts:53

Not supported yet.

The public endpoints speak plain gRPC over HTTP/2 only: a gRPC-Web request comes back as application/grpc with the status in trailers, and a CORS preflight returns no access-control-allow-origin. Browser support needs a tonic-web layer plus CORS on the node, which is tracked separately.

Once that lands this becomes a createGrpcWebTransport call, and nothing else in the client changes.

Parameters​

_options​

GrpcTransportOptions

Returns​

Transport