summary refs log tree commit diff
path: root/webrtc/src/start.ts
blob: 9a5f38eecb6482612625304e7afe13b948bd9838 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
process.on("uncaughtException", console.error);
process.on("unhandledRejection", console.error);

import { config } from "dotenv";
import { Server } from "./Server";
config();

const port = Number(process.env.PORT) || 3004;

const server = new Server({
	port
});
server.start();