/** * Initialize grpc-node clients for each rpc service, lazy connection under the surface * * @private */ _initRpcClients() { const socket = this._endpoint.split('//').pop(); this.clients = Object.keys(rpcs).reduce((acc, x) => { debug('initRpcClient', x); acc[x] = new rpcs[x](socket, grpc.credentials.createInsecure()); return acc; }, {}); }