SafetyCulture / grpc-web-devtools

Chrome & Firefox Browser extension to aid gRPC-Web development
MIT License
402 stars 51 forks source link

IRES-508: Fix streaming interceptor #170

Closed matt-lewandowski closed 10 months ago

matt-lewandowski commented 10 months ago

Changes

  1. Updates the connect-web-interceptor script to handle streaming requests.
  2. Switch to a try catch to match the await needed by the message generator.

Connect has documentation on how to properly setup a streaming interceptor. This implements that interceptor and ensures it is working. It looks like streaming was not previously working at all. https://connectrpc.com/docs/web/interceptors/

Screenshot 2023-11-06 at 1 18 02 pm

Previously

https://github.com/SafetyCulture/grpc-web-devtools/assets/59549216/7cd1ef3d-d16e-414b-8079-687b37a11629