diff options
author | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:00:16 +0200 |
---|---|---|
committer | Flam3rboy <34555296+Flam3rboy@users.noreply.github.com> | 2021-08-13 13:00:16 +0200 |
commit | 11353dabfd95df510d7f054ed4acbd28c8bb4e1f (patch) | |
tree | 33eca0beeb91d6efdb7730c0964644c484e9ebf9 /webrtc | |
parent | rename @fosscord/server-util to -> @fosscord/util (diff) | |
download | server-11353dabfd95df510d7f054ed4acbd28c8bb4e1f.tar.xz |
cleanup rtc
Diffstat (limited to 'webrtc')
-rw-r--r-- | webrtc/package.json | 1 | ||||
-rw-r--r-- | webrtc/src/Server.ts | 5 |
2 files changed, 3 insertions, 3 deletions
diff --git a/webrtc/package.json b/webrtc/package.json index 48a6d133..d5605c09 100644 --- a/webrtc/package.json +++ b/webrtc/package.json @@ -4,6 +4,7 @@ "description": "A javascript fosscord webrtc server for voice and video communication", "main": "index.js", "scripts": { + "postinstall": "npm link @fosscord/util", "test": "npm run build && node dist/test.js", "build": "tsc -b .", "start": "npm run build && node dist/start.js" diff --git a/webrtc/src/Server.ts b/webrtc/src/Server.ts index bb82e659..41ca65d1 100644 --- a/webrtc/src/Server.ts +++ b/webrtc/src/Server.ts @@ -1,6 +1,6 @@ import { Server as WebSocketServer } from "ws"; -import { Config, db } from "@fosscord/server-util"; -import mediasoup from "mediasoup" +import { Config, db } from "@fosscord/util"; +import mediasoup from "mediasoup"; var port = Number(process.env.PORT); if (isNaN(port)) port = 3004; @@ -30,7 +30,6 @@ export class Server { ); }); }); - } async listen(): Promise<void> { |