import { injectable } from 'inversify' ; import CDPClient , { ICDPClient , ICDPClientAddress } from './cdpClient' ; export const ICDPClientProvider = Symbol ( 'CDPClientProvider' ) ; export interface ICDPClientProvider { createCDPClient ( address ) : ICDPClient ; } @ injectable ( ) export class DefaultCDPClientProvider implements ICDPClientProvider { createCDPClient ( { host , port , path = '' } ) { return new CDPClient ( host , port , path ) ; } }