Implementing JSON-RPC with Effect-TS RPC Package: Defining and Converting Request Shapes
I'm struggling to figure out the best way to implement json-rpc with the rpc package https://github.com/Effect-TS/effect/tree/main/packages/rpc
What I want to do is define the shape of a request
However reading source code of the rpc package it seems to be hardcoded to only accept requests that have a _tag property. So next step I thought was to define a way to convert between the two
But I still can't quite figure out how to get all the pieces to click in place. It generally feels like there must be an easier way I'm missing.
What I want to do is define the shape of a request
However reading source code of the rpc package it seems to be hardcoded to only accept requests that have a _tag property. So next step I thought was to define a way to convert between the two
But I still can't quite figure out how to get all the pieces to click in place. It generally feels like there must be an easier way I'm missing.
