First test version

This commit is contained in:
Fabian Stamm
2021-12-04 16:59:25 +01:00
commit e3b8716a85
12 changed files with 2068 additions and 0 deletions

11
src/index.ts Normal file
View File

@ -0,0 +1,11 @@
import { ExpressPeerServer } from "peer";
import * as express from "express";
const app = express();
const server = app.listen(3000);
const peerServer = ExpressPeerServer(server, {
path: "/",
});
app.use("/peerjs", peerServer as any);
app.use("/", express.static("public"));