The custom encoding is only applied you
yield
objects in a streaming entrypoint.reason-decoder
package comes in!
reason-decoder
package
reason-decoder
is a package for Javascript/Typescript that handles the decoding of your RΞASON’s streamed data.
If you are using React as your client, we recommend checking out our React library.
An example of using reason-decoder
reason-decoder
only handles the decoding of the data.
A complete example
Here’s an example of how you could make a HTTP request to RΞASON and decode it:An end-to-end example