Skip to content
This repository has been archived by the owner on Jun 11, 2024. It is now read-only.

Implement IPCClient connection and base functions for APIClient #5923

Closed
shuse2 opened this issue Oct 28, 2020 · 0 comments
Closed

Implement IPCClient connection and base functions for APIClient #5923

shuse2 opened this issue Oct 28, 2020 · 0 comments
Assignees
Milestone

Comments

@shuse2
Copy link
Collaborator

shuse2 commented Oct 28, 2020

Description

  • Add IPCClient which has below interface
public async connect(): Promise<void>
public async disconnect(): Promise<void>
public async invoke<T>(actionName: string, params?: Record<string, unknown>): Promise<T>
public subscribe(eventName: string, cb: EventCallback): void
  • Add connect, disconnect, invoke and subscribe in APIClient

Motivation

  • APIClient needs to be able to communicate using IPC socket.

Acceptance Criteria

  • Manually, Test IPC client can be used against core
  • Add unit tests

Additional Information

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants