diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-16 13:23:50 +1000 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-09-16 13:38:06 +1000 |
commit | 17922d1d1bfe083723a189233e3658686e5db84f (patch) | |
tree | 13d5558a452ad0606d48d7d943372140b26a2008 /bundle/src | |
parent | Probably broken merge from webrtc (diff) | |
download | server-17922d1d1bfe083723a189233e3658686e5db84f.tar.xz |
Add webrtc to bundle
Diffstat (limited to 'bundle/src')
-rw-r--r-- | bundle/src/Server.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/bundle/src/Server.ts b/bundle/src/Server.ts index df29266d..2fbba318 100644 --- a/bundle/src/Server.ts +++ b/bundle/src/Server.ts @@ -4,6 +4,7 @@ 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"; @@ -17,12 +18,10 @@ const port = Number(process.env.PORT) || 3001; const production = process.env.NODE_ENV == "development" ? false : true; server.on("request", app); -// @ts-ignore const api = new Api.FosscordServer({ server, port, production, app }); -// @ts-ignore const cdn = new CDNServer({ server, port, production, app }); -// @ts-ignore 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', () => { @@ -93,7 +92,7 @@ async function main() { }); } - await Promise.all([api.start(), cdn.start(), gateway.start()]); + await Promise.all([api.start(), cdn.start(), gateway.start(), webrtc.start()]); console.log(`[Server] ${green(`listening on port ${bold(port)}`)}`); } |