ing
This commit is contained in:
parent
36471f2f12
commit
025ce74596
|
@ -3,9 +3,6 @@ import { Observable } from 'rxjs';
|
|||
import { RPCService } from '@loafer/ng-rpc';
|
||||
import { Infra } from '@overflow/commons-typescript/model/infra';
|
||||
import { Host, Service } from '@overflow/commons-typescript';
|
||||
import { gzip } from 'pako';
|
||||
|
||||
|
||||
|
||||
@Injectable()
|
||||
export class InfraService {
|
||||
|
@ -21,15 +18,7 @@ export class InfraService {
|
|||
}
|
||||
|
||||
public registDiscoverd(probeID: number, hosts: Host[], services: Service[]): Observable<Infra[]> {
|
||||
const discoverd = {
|
||||
hosts: hosts,
|
||||
services: services,
|
||||
};
|
||||
|
||||
const json = JSON.stringify(discoverd);
|
||||
const compressed = gzip(json, { to: 'string' });
|
||||
const base64 = btoa(compressed);
|
||||
return this.rpcService.call<Infra[]>('InfraService.registDiscoverd', probeID, base64);
|
||||
return this.rpcService.call<Infra[]>('InfraService.registDiscoverd', probeID, hosts, services);
|
||||
}
|
||||
|
||||
public read(id: string): Observable<Infra> {
|
||||
|
|
|
@ -59,7 +59,8 @@
|
|||
"serve": {
|
||||
"builder": "@angular-devkit/build-angular:dev-server",
|
||||
"options": {
|
||||
"browserTarget": "member-webapp:build"
|
||||
"browserTarget": "member-webapp:build",
|
||||
"host": "0.0.0.0"
|
||||
},
|
||||
"configurations": {
|
||||
"production": {
|
||||
|
|
453
package-lock.json
generated
453
package-lock.json
generated
|
@ -417,9 +417,9 @@
|
|||
}
|
||||
},
|
||||
"@loafer/ng-rpc": {
|
||||
"version": "0.0.5",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/@loafer/ng-rpc/-/ng-rpc-0.0.5.tgz",
|
||||
"integrity": "sha512-U4bcmm+muAkZxvLnQ0Cakm+wSmgNN11FQ4HDSCmZ+8RFKiA15zBJQAb7MLCzuViahah/MxFMJQAEPACZz/dEPw==",
|
||||
"version": "0.0.8",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/@loafer/ng-rpc/-/ng-rpc-0.0.8.tgz",
|
||||
"integrity": "sha512-2+vIthHr1Bh1mBnNm1cYgPC/SOobkby2H046uRJkOVN60oUpPDtYsMCLDLS2c/vOin2VO9oyJfvfRj5kfwd3xg==",
|
||||
"requires": {
|
||||
"tslib": "^1.9.0"
|
||||
}
|
||||
|
@ -511,12 +511,6 @@
|
|||
"integrity": "sha512-jRHfWsvyMtXdbhnz5CVHxaBgnV6duZnPlQuRSo/dm/GnmikNcmZhxIES4E9OZjUmQ8C+HCl4KJux+cXN/ErGDQ==",
|
||||
"dev": true
|
||||
},
|
||||
"@types/pako": {
|
||||
"version": "1.0.0",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/@types/pako/-/pako-1.0.0.tgz",
|
||||
"integrity": "sha1-6q6DZNG391LiY7w/1o3+yY5hNsU=",
|
||||
"dev": true
|
||||
},
|
||||
"@types/q": {
|
||||
"version": "0.0.32",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/@types/q/-/q-0.0.32.tgz",
|
||||
|
@ -1024,12 +1018,6 @@
|
|||
"integrity": "sha1-qJS3XUvE9s1nnvMkSp/Y9Gri1Cg=",
|
||||
"dev": true
|
||||
},
|
||||
"arraybuffer.slice": {
|
||||
"version": "0.0.6",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz",
|
||||
"integrity": "sha1-8zshWfBTKj8xB6JywMz70a0peco=",
|
||||
"dev": true
|
||||
},
|
||||
"arrify": {
|
||||
"version": "1.0.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/arrify/-/arrify-1.0.1.tgz",
|
||||
|
@ -2882,98 +2870,6 @@
|
|||
"once": "^1.4.0"
|
||||
}
|
||||
},
|
||||
"engine.io": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/engine.io/-/engine.io-1.8.3.tgz",
|
||||
"integrity": "sha1-jef5eJXSDTm4X4ju7nd7K9QrE9Q=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"accepts": "1.3.3",
|
||||
"base64id": "1.0.0",
|
||||
"cookie": "0.3.1",
|
||||
"debug": "2.3.3",
|
||||
"engine.io-parser": "1.3.2",
|
||||
"ws": "1.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"accepts": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/accepts/-/accepts-1.3.3.tgz",
|
||||
"integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"mime-types": "~2.1.11",
|
||||
"negotiator": "0.6.1"
|
||||
}
|
||||
},
|
||||
"debug": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/debug/-/debug-2.3.3.tgz",
|
||||
"integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "0.7.2"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/ms/-/ms-0.7.2.tgz",
|
||||
"integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"engine.io-client": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/engine.io-client/-/engine.io-client-1.8.3.tgz",
|
||||
"integrity": "sha1-F5jtk0USRkU9TG9jXXogH+lA1as=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"component-emitter": "1.2.1",
|
||||
"component-inherit": "0.0.3",
|
||||
"debug": "2.3.3",
|
||||
"engine.io-parser": "1.3.2",
|
||||
"has-cors": "1.1.0",
|
||||
"indexof": "0.0.1",
|
||||
"parsejson": "0.0.3",
|
||||
"parseqs": "0.0.5",
|
||||
"parseuri": "0.0.5",
|
||||
"ws": "1.1.2",
|
||||
"xmlhttprequest-ssl": "1.5.3",
|
||||
"yeast": "0.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/debug/-/debug-2.3.3.tgz",
|
||||
"integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "0.7.2"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/ms/-/ms-0.7.2.tgz",
|
||||
"integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"engine.io-parser": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/engine.io-parser/-/engine.io-parser-1.3.2.tgz",
|
||||
"integrity": "sha1-k3sHnwAH0Ik+xW1GyyILjLQ1Igo=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"after": "0.8.2",
|
||||
"arraybuffer.slice": "0.0.6",
|
||||
"base64-arraybuffer": "0.1.5",
|
||||
"blob": "0.0.4",
|
||||
"has-binary": "0.1.7",
|
||||
"wtf-8": "1.0.0"
|
||||
}
|
||||
},
|
||||
"enhanced-resolve": {
|
||||
"version": "4.0.0",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/enhanced-resolve/-/enhanced-resolve-4.0.0.tgz",
|
||||
|
@ -5924,6 +5820,16 @@
|
|||
"useragent": "^2.1.12"
|
||||
},
|
||||
"dependencies": {
|
||||
"accepts": {
|
||||
"version": "1.3.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/accepts/-/accepts-1.3.3.tgz",
|
||||
"integrity": "sha1-w8p0NJOGSMPg2cHjKN1otiLChMo=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"mime-types": "~2.1.11",
|
||||
"negotiator": "0.6.1"
|
||||
}
|
||||
},
|
||||
"anymatch": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/anymatch/-/anymatch-1.3.2.tgz",
|
||||
|
@ -5949,6 +5855,12 @@
|
|||
"integrity": "sha1-odl8yvy8JiXMcPrc6zalDFiwGlM=",
|
||||
"dev": true
|
||||
},
|
||||
"arraybuffer.slice": {
|
||||
"version": "0.0.6",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/arraybuffer.slice/-/arraybuffer.slice-0.0.6.tgz",
|
||||
"integrity": "sha1-8zshWfBTKj8xB6JywMz70a0peco=",
|
||||
"dev": true
|
||||
},
|
||||
"braces": {
|
||||
"version": "1.8.5",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/braces/-/braces-1.8.5.tgz",
|
||||
|
@ -5977,6 +5889,77 @@
|
|||
"readdirp": "^2.0.0"
|
||||
}
|
||||
},
|
||||
"component-emitter": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/component-emitter/-/component-emitter-1.1.2.tgz",
|
||||
"integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=",
|
||||
"dev": true
|
||||
},
|
||||
"debug": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/debug/-/debug-2.3.3.tgz",
|
||||
"integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "0.7.2"
|
||||
}
|
||||
},
|
||||
"engine.io": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/engine.io/-/engine.io-1.8.3.tgz",
|
||||
"integrity": "sha1-jef5eJXSDTm4X4ju7nd7K9QrE9Q=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"accepts": "1.3.3",
|
||||
"base64id": "1.0.0",
|
||||
"cookie": "0.3.1",
|
||||
"debug": "2.3.3",
|
||||
"engine.io-parser": "1.3.2",
|
||||
"ws": "1.1.2"
|
||||
}
|
||||
},
|
||||
"engine.io-client": {
|
||||
"version": "1.8.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/engine.io-client/-/engine.io-client-1.8.3.tgz",
|
||||
"integrity": "sha1-F5jtk0USRkU9TG9jXXogH+lA1as=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"component-emitter": "1.2.1",
|
||||
"component-inherit": "0.0.3",
|
||||
"debug": "2.3.3",
|
||||
"engine.io-parser": "1.3.2",
|
||||
"has-cors": "1.1.0",
|
||||
"indexof": "0.0.1",
|
||||
"parsejson": "0.0.3",
|
||||
"parseqs": "0.0.5",
|
||||
"parseuri": "0.0.5",
|
||||
"ws": "1.1.2",
|
||||
"xmlhttprequest-ssl": "1.5.3",
|
||||
"yeast": "0.1.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"component-emitter": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/component-emitter/-/component-emitter-1.2.1.tgz",
|
||||
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"engine.io-parser": {
|
||||
"version": "1.3.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/engine.io-parser/-/engine.io-parser-1.3.2.tgz",
|
||||
"integrity": "sha1-k3sHnwAH0Ik+xW1GyyILjLQ1Igo=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"after": "0.8.2",
|
||||
"arraybuffer.slice": "0.0.6",
|
||||
"base64-arraybuffer": "0.1.5",
|
||||
"blob": "0.0.4",
|
||||
"has-binary": "0.1.7",
|
||||
"wtf-8": "1.0.0"
|
||||
}
|
||||
},
|
||||
"expand-brackets": {
|
||||
"version": "0.1.5",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/expand-brackets/-/expand-brackets-0.1.5.tgz",
|
||||
|
@ -6019,6 +6002,12 @@
|
|||
"is-extglob": "^1.0.0"
|
||||
}
|
||||
},
|
||||
"isarray": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/isarray/-/isarray-0.0.1.tgz",
|
||||
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
|
||||
"dev": true
|
||||
},
|
||||
"kind-of": {
|
||||
"version": "3.2.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/kind-of/-/kind-of-3.2.2.tgz",
|
||||
|
@ -6054,6 +6043,105 @@
|
|||
"parse-glob": "^3.0.4",
|
||||
"regex-cache": "^0.4.2"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/ms/-/ms-0.7.2.tgz",
|
||||
"integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=",
|
||||
"dev": true
|
||||
},
|
||||
"object-assign": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/object-assign/-/object-assign-4.1.0.tgz",
|
||||
"integrity": "sha1-ejs9DpgGPUP0wD8uiubNUahog6A=",
|
||||
"dev": true
|
||||
},
|
||||
"socket.io": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/socket.io/-/socket.io-1.7.3.tgz",
|
||||
"integrity": "sha1-uK+cq6AJSeVo42nxMn6pvp6iRhs=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug": "2.3.3",
|
||||
"engine.io": "1.8.3",
|
||||
"has-binary": "0.1.7",
|
||||
"object-assign": "4.1.0",
|
||||
"socket.io-adapter": "0.5.0",
|
||||
"socket.io-client": "1.7.3",
|
||||
"socket.io-parser": "2.3.1"
|
||||
}
|
||||
},
|
||||
"socket.io-adapter": {
|
||||
"version": "0.5.0",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/socket.io-adapter/-/socket.io-adapter-0.5.0.tgz",
|
||||
"integrity": "sha1-y21LuL7IHhB4uZZ3+c7QBGBmu4s=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug": "2.3.3",
|
||||
"socket.io-parser": "2.3.1"
|
||||
}
|
||||
},
|
||||
"socket.io-client": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/socket.io-client/-/socket.io-client-1.7.3.tgz",
|
||||
"integrity": "sha1-sw6GqhDV7zVGYBwJzeR2Xjgdo3c=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"backo2": "1.0.2",
|
||||
"component-bind": "1.0.0",
|
||||
"component-emitter": "1.2.1",
|
||||
"debug": "2.3.3",
|
||||
"engine.io-client": "1.8.3",
|
||||
"has-binary": "0.1.7",
|
||||
"indexof": "0.0.1",
|
||||
"object-component": "0.0.3",
|
||||
"parseuri": "0.0.5",
|
||||
"socket.io-parser": "2.3.1",
|
||||
"to-array": "0.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"component-emitter": {
|
||||
"version": "1.2.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/component-emitter/-/component-emitter-1.2.1.tgz",
|
||||
"integrity": "sha1-E3kY1teCg/ffemt8WmPhQOaUJeY=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"socket.io-parser": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/socket.io-parser/-/socket.io-parser-2.3.1.tgz",
|
||||
"integrity": "sha1-3VMgJRA85Clpcya+/WQAX8/ltKA=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"component-emitter": "1.1.2",
|
||||
"debug": "2.2.0",
|
||||
"isarray": "0.0.1",
|
||||
"json3": "3.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/debug/-/debug-2.2.0.tgz",
|
||||
"integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "0.7.1"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "0.7.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/ms/-/ms-0.7.1.tgz",
|
||||
"integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"xmlhttprequest-ssl": {
|
||||
"version": "1.5.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.3.tgz",
|
||||
"integrity": "sha1-GFqIjATspGw+QHDZn3tJ3jUomS0=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
|
@ -7576,7 +7664,8 @@
|
|||
"pako": {
|
||||
"version": "1.0.6",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/pako/-/pako-1.0.6.tgz",
|
||||
"integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg=="
|
||||
"integrity": "sha512-lQe48YPsMJAig+yngZ87Lus+NF+3mtu7DVOBu6b/gHO1YpKwIj5AWjZ/TOS7i46HD/UixzWb1zeWDZfGZ3iYcg==",
|
||||
"dev": true
|
||||
},
|
||||
"parallel-transform": {
|
||||
"version": "1.1.0",
|
||||
|
@ -9215,148 +9304,6 @@
|
|||
"hoek": "2.x.x"
|
||||
}
|
||||
},
|
||||
"socket.io": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/socket.io/-/socket.io-1.7.3.tgz",
|
||||
"integrity": "sha1-uK+cq6AJSeVo42nxMn6pvp6iRhs=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug": "2.3.3",
|
||||
"engine.io": "1.8.3",
|
||||
"has-binary": "0.1.7",
|
||||
"object-assign": "4.1.0",
|
||||
"socket.io-adapter": "0.5.0",
|
||||
"socket.io-client": "1.7.3",
|
||||
"socket.io-parser": "2.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/debug/-/debug-2.3.3.tgz",
|
||||
"integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "0.7.2"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/ms/-/ms-0.7.2.tgz",
|
||||
"integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=",
|
||||
"dev": true
|
||||
},
|
||||
"object-assign": {
|
||||
"version": "4.1.0",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/object-assign/-/object-assign-4.1.0.tgz",
|
||||
"integrity": "sha1-ejs9DpgGPUP0wD8uiubNUahog6A=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"socket.io-adapter": {
|
||||
"version": "0.5.0",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/socket.io-adapter/-/socket.io-adapter-0.5.0.tgz",
|
||||
"integrity": "sha1-y21LuL7IHhB4uZZ3+c7QBGBmu4s=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"debug": "2.3.3",
|
||||
"socket.io-parser": "2.3.1"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/debug/-/debug-2.3.3.tgz",
|
||||
"integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "0.7.2"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/ms/-/ms-0.7.2.tgz",
|
||||
"integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"socket.io-client": {
|
||||
"version": "1.7.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/socket.io-client/-/socket.io-client-1.7.3.tgz",
|
||||
"integrity": "sha1-sw6GqhDV7zVGYBwJzeR2Xjgdo3c=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"backo2": "1.0.2",
|
||||
"component-bind": "1.0.0",
|
||||
"component-emitter": "1.2.1",
|
||||
"debug": "2.3.3",
|
||||
"engine.io-client": "1.8.3",
|
||||
"has-binary": "0.1.7",
|
||||
"indexof": "0.0.1",
|
||||
"object-component": "0.0.3",
|
||||
"parseuri": "0.0.5",
|
||||
"socket.io-parser": "2.3.1",
|
||||
"to-array": "0.1.4"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "2.3.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/debug/-/debug-2.3.3.tgz",
|
||||
"integrity": "sha1-QMRT5n5uE8kB3ewxeviYbNqe/4w=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "0.7.2"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "0.7.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/ms/-/ms-0.7.2.tgz",
|
||||
"integrity": "sha1-riXPJRKziFodldfwN4aNhDESR2U=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"socket.io-parser": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/socket.io-parser/-/socket.io-parser-2.3.1.tgz",
|
||||
"integrity": "sha1-3VMgJRA85Clpcya+/WQAX8/ltKA=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"component-emitter": "1.1.2",
|
||||
"debug": "2.2.0",
|
||||
"isarray": "0.0.1",
|
||||
"json3": "3.3.2"
|
||||
},
|
||||
"dependencies": {
|
||||
"component-emitter": {
|
||||
"version": "1.1.2",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/component-emitter/-/component-emitter-1.1.2.tgz",
|
||||
"integrity": "sha1-KWWU8nU9qmOZbSrwjRWpURbJrsM=",
|
||||
"dev": true
|
||||
},
|
||||
"debug": {
|
||||
"version": "2.2.0",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/debug/-/debug-2.2.0.tgz",
|
||||
"integrity": "sha1-+HBX6ZWxofauaklgZkE3vFbwOdo=",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"ms": "0.7.1"
|
||||
}
|
||||
},
|
||||
"isarray": {
|
||||
"version": "0.0.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/isarray/-/isarray-0.0.1.tgz",
|
||||
"integrity": "sha1-ihis/Kmo9Bd+Cav8YDiTmwXR7t8=",
|
||||
"dev": true
|
||||
},
|
||||
"ms": {
|
||||
"version": "0.7.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/ms/-/ms-0.7.1.tgz",
|
||||
"integrity": "sha1-nNE8A62/8ltl7/3nzoZO6VIBcJg=",
|
||||
"dev": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"sockjs": {
|
||||
"version": "0.3.19",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/sockjs/-/sockjs-0.3.19.tgz",
|
||||
|
@ -10967,12 +10914,6 @@
|
|||
"integrity": "sha1-Ey7mPS7FVlxVfiD0wi35rKaGsQ0=",
|
||||
"dev": true
|
||||
},
|
||||
"xmlhttprequest-ssl": {
|
||||
"version": "1.5.3",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/xmlhttprequest-ssl/-/xmlhttprequest-ssl-1.5.3.tgz",
|
||||
"integrity": "sha1-GFqIjATspGw+QHDZn3tJ3jUomS0=",
|
||||
"dev": true
|
||||
},
|
||||
"xtend": {
|
||||
"version": "4.0.1",
|
||||
"resolved": "https://nexus.loafle.net/repository/npm-all/xtend/-/xtend-4.0.1.tgz",
|
||||
|
|
|
@ -31,7 +31,7 @@
|
|||
"@loafer/ng-entity": "^0.0.2",
|
||||
"@loafer/ng-logger": "^0.0.1",
|
||||
"@loafer/ng-rest": "^0.0.1",
|
||||
"@loafer/ng-rpc": "^0.0.5",
|
||||
"@loafer/ng-rpc": "^0.0.8",
|
||||
"@ngrx/core": "^1.2.0",
|
||||
"@ngrx/effects": "^5.2.0",
|
||||
"@ngrx/router-store": "^5.2.0",
|
||||
|
@ -48,7 +48,6 @@
|
|||
"jquery": "^3.3.1",
|
||||
"ngx-cookie-service": "^1.0.10",
|
||||
"openssl": "^1.1.0",
|
||||
"pako": "^1.0.6",
|
||||
"primeng": "^5.2.4",
|
||||
"reflect-metadata": "^0.1.12",
|
||||
"rxjs": "^6.0.0",
|
||||
|
@ -64,7 +63,6 @@
|
|||
"@types/jasmine": "~2.8.6",
|
||||
"@types/jasminewd2": "~2.0.3",
|
||||
"@types/node": "~8.9.4",
|
||||
"@types/pako": "^1.0.0",
|
||||
"codelyzer": "~4.2.1",
|
||||
"jasmine-core": "~2.99.1",
|
||||
"jasmine-spec-reporter": "~4.2.1",
|
||||
|
|
|
@ -7,6 +7,7 @@ import {
|
|||
JSONRPCClientCodec,
|
||||
RPCClientWebsocketRWC,
|
||||
RxWebsocketSubjectConfig,
|
||||
CompressionCodecSelector,
|
||||
} from '@loafer/ng-rpc';
|
||||
|
||||
import { environment } from '../environments/environment';
|
||||
|
@ -20,9 +21,12 @@ import { environment } from '../environments/environment';
|
|||
RPCModule.forRoot([]),
|
||||
],
|
||||
providers: [
|
||||
{provide: 'WEBAPP_RPC_CONFIG', useValue: environment.webappRPCConfig},
|
||||
{ provide: 'WEBAPP_RPC_CONFIG', useValue: environment.webappRPCConfig },
|
||||
|
||||
{provide: RPC_CODEC, useFactory: () => new JSONRPCClientCodec()},
|
||||
{
|
||||
provide: RPC_CODEC, useFactory: () =>
|
||||
new JSONRPCClientCodec(new CompressionCodecSelector(environment.webappRPCConfig.compressionThreshold))
|
||||
},
|
||||
{
|
||||
provide: RPC_RWC,
|
||||
useFactory: (config: RxWebsocketSubjectConfig) => new RPCClientWebsocketRWC(config),
|
||||
|
|
|
@ -8,8 +8,8 @@ export const environment = {
|
|||
restBaseURL: 'http://192.168.1.101:19080/webapp',
|
||||
webappRPCConfig: {
|
||||
url: 'ws://192.168.1.101:19090/webapp',
|
||||
protocol: ['permessage-deflate'],
|
||||
reconnectInterval: 5000,
|
||||
reconnectRetry: 10,
|
||||
compressionThreshold: 1024,
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue
Block a user