MCPcopy Create free account
hub / github.com/PleasureTools/joyBox / constructor

Method constructor

backend/Src/main.ts:78–100  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

76 private recorderListener!: RecorderListener;
77 private pluginManagerListener!: PluginManagerListener;
78 constructor() {
79
80 process.on('uncaughtException', e => Logger.Get.Log(e.toString()));
81
82 Logger.Get.AddWriter(new ConsoleWriter());
83 this.express = Express();
84 this.server = new WebServerFactory().Create();
85 this.server.on('request', this.express);
86 this.io = SocketIo(this.server);
87
88 if (C.Hostname !== '')
89 this.io.origins(SocketSameOrigin);
90
91 this.broadcaster = new Broadcaster(this.io);
92
93 this.RegisterPlugin('bongacams', new BongacamsLocator(new BongacamsExtractor(), 10000));
94 this.RegisterPlugin('bongacams_direct', new BongacamsDirectLocator(new BongacamsExtractor(), 10000));
95 this.RegisterPlugin('chaturbate', new ChaturbateDirectLocator(new ChaturbateExtractor(), 10000));
96 this.RegisterPlugin('camsoda', new CamsodaLocator(new CamsodaExtractor(), 10000));
97 this.RegisterPlugin('dummy', new DummyLocator(new DummyExtractor(), 10000));
98
99 this.StartResourceMonitor();
100 }
101
102 public async UplaodVideoRoute(request: Express.Request, response: Express.Response, next: Express.NextFunction) {
103 const thumbnailGen = new ThumbnailGenerator();

Callers

nothing calls this directly

Calls 5

RegisterPluginMethod · 0.95
StartResourceMonitorMethod · 0.95
AddWriterMethod · 0.80
LogMethod · 0.45
CreateMethod · 0.45

Tested by

no test coverage detected