123456789101112131415161718192021222324252627 |
- import { AcknowledgementService } from "../services/acknowledgement.service";
- import { StreamingService } from "./test-streamOBS";
- import { SyncrhonizationService } from "../services/synchronization.service";
- import { LogSetting } from "../dependencies/fisloggingservice/type/datatype";
- const acknowledge = new AcknowledgementService()
- const syncrhonize = new SyncrhonizationService()
- const streamService = new StreamingService()
- // Configure Log Setting
- const storage: LogSetting = {
- storage: "File",
- setting: {
- appName: 'Default from client',
- appLocName: 'To be generated in client',
- logLocName: 'To be generated in client',
- }
- }
- // console.log(`I am Client 1`)
- // syncrhonize.synchronize()
- /* -------------- ACTION -------------------- */
- const payload = streamService.stream()
- acknowledge.init(storage).then(() => {
- acknowledge.subscribe(payload)
- }).catch((e) => console.error(e))
|