You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
kona-rpc uses jsonrpsee to construct server and client JSON-RPC APIs.
In jsonrpsee, these JSON-RPC api implementations can be converted into a RpcModule. Since kona will have multiple RpcModules, modules can be merged using the merge() method.
After merging all the modules, the jsonrpsee::server::Server instance is started, passing in the modules as an argument.
Starting the server returns a ServerHandle that can be awaited on using the stopped() method.
Output
This ticket is to create a ServerLauncher that constructs the jsonrpsee::server::Server and accepts modules via a merge method. It should lastly have a start method that consumes the ServerLauncher itself, starting the server with its modules, and returns the ServerHandle.
Future tickets will tackle implementations of the JSON-RPC APIs in kona-rpc and merging them into the ServerLauncher.
The text was updated successfully, but these errors were encountered:
Background
kona-rpc
usesjsonrpsee
to construct server and client JSON-RPC APIs.In
jsonrpsee
, these JSON-RPC api implementations can be converted into aRpcModule
. Since kona will have multipleRpcModule
s, modules can be merged using themerge()
method.After merging all the modules, the
jsonrpsee::server::Server
instance is started, passing in the modules as an argument.Starting the server returns a
ServerHandle
that can be awaited on using thestopped()
method.Output
This ticket is to create a
ServerLauncher
that constructs thejsonrpsee::server::Server
and accepts modules via amerge
method. It should lastly have astart
method that consumes theServerLauncher
itself, starting the server with its modules, and returns theServerHandle
.Future tickets will tackle implementations of the JSON-RPC APIs in
kona-rpc
and merging them into theServerLauncher
.The text was updated successfully, but these errors were encountered: