diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-21 14:41:21 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-21 14:41:21 +1000 |
commit | f569ef95eebeea7b214dedf0229a5be6178857da (patch) | |
tree | 8ed983efc0dd83e8d3c14f3e47fce1f9e9d08ff1 /bundle/src/Server.ts | |
parent | Random webrtc crap (diff) | |
download | server-f569ef95eebeea7b214dedf0229a5be6178857da.tar.xz |
Remove webrtc from bundle
Diffstat (limited to 'bundle/src/Server.ts')
-rw-r--r-- | bundle/src/Server.ts | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index 39a49b53..fa99cf07 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -4,7 +4,6 @@ process.on("uncaughtException", console.error); import http from "http"; import * as Api from "@fosscord/api"; import * as Gateway from "@fosscord/gateway"; -import * as WebRTC from "@fosscord/webrtc"; import { CDNServer } from "@fosscord/cdn"; import express from "express"; import { green, bold, yellow } from "picocolors"; @@ -21,14 +20,13 @@ server.on("request", app); const api = new Api.FosscordServer({ server, port, production, app }); const cdn = new CDNServer({ server, port, production, app }); const gateway = new Gateway.Server({ server, port, production }); -const webrtc = new WebRTC.Server({ server, port, production }); //this is what has been added for the /stop API route process.on('SIGTERM', () => { server.close(() => { - console.log("Stop API has been successfully POSTed, SIGTERM sent") - }) -}) + console.log("Stop API has been successfully POSTed, SIGTERM sent"); + }); +}); //this is what has been added for the /stop API route async function main() { @@ -89,7 +87,7 @@ async function main() { app.use(Sentry.Handlers.tracingHandler()); } - await Promise.all([api.start(), cdn.start(), gateway.start(), webrtc.start()]); + await Promise.all([api.start(), cdn.start(), gateway.start()]); if (Config.get().sentry.enabled) { app.use(Sentry.Handlers.errorHandler()); |