Skip to content

Commit

Permalink
Make TspClient reuseable interface
Browse files Browse the repository at this point in the history
The new interface is called `ITspClient`.
`ITspClient` can be used for typing and other implementations.
The existing functionality was moved to the `HttpTspClient`.
To not break the existing behavior `TspClient` is still exported as an
alias for the `HttpTspClient`, but is being deprecated.
This way adopters should be notified to migrate to `HttpTspClient`.
This makes the package more flexible as different implementations
can be provided, e.g. a proxy client in a Theia frontend.

Part of eclipse-cdt-cloud/theia-trace-extension#976

Contributed on behalf of STMicroelectronics
  • Loading branch information
sgraband committed Aug 10, 2023
1 parent 3279f64 commit 3602d61
Show file tree
Hide file tree
Showing 4 changed files with 609 additions and 172 deletions.
1 change: 1 addition & 0 deletions tsp-typescript-client/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,6 @@ export * from './models/trace';
export * from './models/xy';
export * from './models/styles';
export * from './protocol/tsp-client';
export * from './protocol/http-tsp-client';
export * from './protocol/rest-client';
export * from './protocol/tsp-client-response';
Loading

0 comments on commit 3602d61

Please sign in to comment.