async pingStream(body: Body): Promise<ApiResponse> {
const subject = new Subject<Body>()
subject.next(body)
const pingServiceClient = this.grpcClient.getService<PingServiceClient>(PING_SERVICE_NAME)
const service: GrpcResponse = await lastValueFrom(pingServiceClient.requestClientStreaming(subject, new Metadata()))
return apiResponse({ stat_code: service.statCode, stat_message: service.statMessage })
}
async pingStream(body: Body): Promise<ApiResponse> {
const subject = new ReplaySubject<Body>()
subject.next(body)
const pingServiceClient = this.grpcClient.getService<PingServiceClient>(PING_SERVICE_NAME)
const service: GrpcResponse = await lastValueFrom(pingServiceClient.requestClientStreaming(subject, new Metadata()))
return apiResponse({ stat_code: service.statCode, stat_message: service.statMessage })
}