This commit is contained in:
crusader 2018-06-21 18:24:37 +09:00
parent 33923ef19e
commit 853141dd0f

View File

@ -4,7 +4,7 @@ import { RPCService } from '@loafer/ng-rpc';
import { Infra } from '@overflow/commons-typescript/model/infra';
import { Page, PageParams } from '@overflow/commons-typescript/core/model';
import { Host, Service } from '@overflow/commons-typescript';
import { deflate } from 'pako';
import { gzip } from 'pako';
@ -28,7 +28,7 @@ export class InfraService {
};
const json = JSON.stringify(discoverd);
const compressed = deflate(json, { to: 'string' });
const compressed = gzip(json, { to: 'string' });
const base64 = btoa(compressed);
return this.rpcService.call<Infra[]>('InfraService.registDiscoverd', probeID, base64);
}