Currently this uses websockets for all grpc-web connections because this way we can support streams. However, it may not make sense to use this transport for normal unary requests. Investigate if we should change it to xhr/fetch and how that can be done on a per-method basis.
Currently this uses websockets for all grpc-web connections because this way we can support streams. However, it may not make sense to use this transport for normal unary requests. Investigate if we should change it to xhr/fetch and how that can be done on a per-method basis.
c.f. https://github.com/aergoio/herajs/blob/master/src/providers/grpc-web.js#L23