SIGN IN SIGN UP

[Flight] Split Streaming from Relay Implemenation (#18260)

* Add ReactFlightServerConfig intermediate

This just forwards to the stream version of Flight which is itself forked
between Node and W3C streams.

The dom-relay goes directly to the Relay config though which allows it to
avoid the stream part of Flight.

* Separate streaming protocol into the Stream config

* Split streaming parts into the ReactFlightServerConfigStream

This decouples it so that the Relay implementation doesn't have to encode
the JSON to strings. Instead it can be fed the values as JSON objects and
do its own encoding.

* Split FlightClient into a basic part and a stream part

Same split as the server.

* Expose lower level async hooks to Relay

This requires an external helper file that we'll wire up internally.
S
Sebastian Markbåge committed
99d73718636d7930a2abf0030c51c1d7710b13d8
Parent: 160505b
Committed by GitHub <noreply@github.com> on 3/10/2020, 9:55:04 PM