diff --git a/src/ts/@overflow/app/config/index.ts b/src/ts/@overflow/app/config/index.ts index 89c6a10..5dd6a97 100644 --- a/src/ts/@overflow/app/config/index.ts +++ b/src/ts/@overflow/app/config/index.ts @@ -60,6 +60,7 @@ import AsyncRequest from '@overflow/app/redux/saga/AsyncRequest'; import AsyncRestRequest from '@overflow/app/redux/saga/AsyncRestRequest'; import DiscoveryService from '@overflow/discovery/api/service/DiscoveryService'; +import NoAuthProbeService from '@overflow/noauthprobe/api/service/NoAuthProbeService'; // Container Configuration export interface ContainerConfig { @@ -147,9 +148,9 @@ const reduxConfig: ReduxConfig = { ], }; -const serviceConfig: Map = new Map([ - ['DiscoveryService', DiscoveryService], -]); +const serviceConfig: Map = new Map(); +serviceConfig.set('DiscoveryService', DiscoveryService.prototype); +serviceConfig.set('NoAuthProbeService', NoAuthProbeService.prototype); // Configuration export interface Config { diff --git a/src/ts/@overflow/app/index.tsx b/src/ts/@overflow/app/index.tsx index bf5e52f..3b5954b 100644 --- a/src/ts/@overflow/app/index.tsx +++ b/src/ts/@overflow/app/index.tsx @@ -108,7 +108,7 @@ class OFApplication { private initRpcClient(): Promise { const rpcClient = new Promise((resolve, reject) => { let serviceInvoker = new ServiceInvoker(this.config.service); - let client = new WebSocketRPC(this.config.rpc.url); + let client = new WebSocketRPC(this.config.rpc.url, serviceInvoker); client.initialize() .then(() => { resolve(client); diff --git a/src/ts/@overflow/noauthprobe/api/service/NoAuthProbeService.ts b/src/ts/@overflow/noauthprobe/api/service/NoAuthProbeService.ts new file mode 100644 index 0000000..cd2ca91 --- /dev/null +++ b/src/ts/@overflow/noauthprobe/api/service/NoAuthProbeService.ts @@ -0,0 +1,17 @@ +import { Service } from '@overflow/commons/api/service'; + + +export class NoAuthProbeService extends Service { + // tslint:disable-next-line:no-empty + public constructor() { + super(); + } + + public regist(params: any): void { + console.log('Discovery has finished.' + params); + // state change test + } + +} + +export default NoAuthProbeService;