Consolidating client service logic and lifecycle #559
Labels
development
Standard development
r&d:polykey:core activity 1
Secret Vault Sharing and Secret History Management
r&d:polykey:supporting activity
Supporting core activity
Specification
We need to consolidate the client service into the client domain. This includes moving all of that logic into the client domain.
Currently we create a
WebsocketServer
,RPCServer
and client manifest separately where needed, namely thePolykeyAgent
. The creation and life-cycle of theses need to be consolidated into aClientService
class for handling all of this.While we're here we can use the extracted
RPC
library once it's ready. So this can include removal of the internalRPC
implementation fromPolykey
.Requirements:
ClientSevice
will be aCreateDestroyStartStop
.ClientService
will handle the life-cycle and setting up of the relevantRPCServer
andWebsocketServer
.ClientService
will be generic on the manifest. This is required to reduce the complexity in tests.Additional context
Tasks
ClientService
class within the client domain.RPC
andWebsocketServer
creation and life-cycle intoClientService
.PolykeyAgent
will be updated to use this.The text was updated successfully, but these errors were encountered: