summary refs log tree commit diff
path: root/webrtc
diff options
context:
space:
mode:
authorFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:00:16 +0200
committerFlam3rboy <34555296+Flam3rboy@users.noreply.github.com>2021-08-13 13:00:16 +0200
commit0a08938d181bb6c30f480aa2f479bc4a22fce9df (patch)
tree25661686ded1b5806a345b6cf26c733910385a7b /webrtc
parentrename @fosscord/server-util to -> @fosscord/util (diff)
downloadserver-0a08938d181bb6c30f480aa2f479bc4a22fce9df.tar.xz
cleanup rtc
Diffstat (limited to 'webrtc')
-rw-r--r--webrtc/package.json1
-rw-r--r--webrtc/src/Server.ts5
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> {