aergoio / herajs-client

Javascript client framework for aergo
https://herajs.readthedocs.io/
MIT License
9 stars 2 forks source link

Rethink using websockets for everything in grpc-web #12

Open graup opened 6 years ago

graup commented 6 years ago

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