-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Setup scaffolding #6
Conversation
Int |
You shouldn't commit the What did you do the main |
So we're going to split this PR up, this PR will focus only on scaffolding as a demonstration to @addievo. Anything related to the actual functionality of RPC will be in a separate PR. |
f4c5a99
to
2e401ba
Compare
2e401ba
to
863ddda
Compare
# This is the 1st commit message: fix: RPCServer.start is now no longer a factory function fix: fixed RPC tests after async-init change # This is the commit message #2: chore: updated inline documentation according to async-init changes # This is the commit message #3: wip: fixing imports # This is the commit message #4: wip: RPCServer deconstruction # This is the commit message #5: fix: RPCServer start stop order # This is the commit message #6: fix: added back createDestroy back to RPCClient # This is the commit message #7: chore: lintfix # This is the commit message #8: wip: completely removed create destroy from rpcclient # This is the commit message #9: fix: RPCClient tests after async-init changes # This is the commit message #10: wip # This is the commit message #11: fix: idgen is optional in constructor # This is the commit message #12: fix: type import in ./types # This is the commit message #13: chore: test for RPCServer force stopping # This is the commit message #14: fix: proper implementation of fromError toError, clientOutputTransformStream no longer outputs error.data, but rather error directly # This is the commit message #15: fix: jest fix for ErrorRPCRemote # This is the commit message #16: wip toError fromError fix: proper implementation of fromError toError, clientOutputTransformStream no longer outputs error.data, but rather error directly fix: changed rpcClient toError implementation fix: changing ErrorRPCRemote constructor to be in-line with toError error creation constructor fix: jest fix for ErrorRPCRemote fix: fixing exports fix: RPC errors now correctly extend AbstractError fix: removed old events fix: cleaned up imports feat: client has toError as parameter fix: removed type from JSONError obj fix: startStop constructor correctly used fix: infinity is definitely not == 1 minute chore: rename variable
Description
RPC is used currently inside Polykey to facilitate the client service and agent service.
We want to use the RPC for PKE and Polykey Desktop, so we want abstract it out into its own library.
This PR introduces the necessary scaffolding first, before we start working on the RPC internals.
Eventually it should replace the RPC code inside Polykey and Polykey can simply depend on
@matrixai/rpc
npm package.Issues Fixed
Tasks
js-logger
(prior to the ESM upgrade)README.md
to change all urls to point tojs-rpc
package.json
to point tojs-rpc
.Final checklist