Compare commits
2 Commits
07be8af9ae
...
5022d88b1d
Author | SHA1 | Date | |
---|---|---|---|
5022d88b1d | |||
52b922825f |
2
.env
2
.env
@ -1,3 +1,3 @@
|
||||
PORT=3001
|
||||
PORT=3000
|
||||
IP=0.0.0.0 # Listening IPv4 or IPv6.
|
||||
ANNOUNCED_IP=185.8.154.190 # Announced IPv4 or IPv6 (useful when running mediasoup behind NAT with private IP).
|
||||
|
8
app.js
8
app.js
@ -7,9 +7,9 @@ import 'dotenv/config'
|
||||
/* Please follow mediasoup installation requirements */
|
||||
/* https://mediasoup.org/documentation/v3/mediasoup/installation/ */
|
||||
// import express from 'express'
|
||||
// const app = express()
|
||||
const app = express()
|
||||
// const app = require('express')();
|
||||
// import https from 'httpolyglot'
|
||||
import https from 'httpolyglot'
|
||||
import fs from 'fs'
|
||||
import path from 'path'
|
||||
const __dirname = path.resolve()
|
||||
@ -17,10 +17,10 @@ const __dirname = path.resolve()
|
||||
// import Server from 'socket.io'
|
||||
import mediasoup from 'mediasoup'
|
||||
import * as express from "express";
|
||||
import * as https from "http";
|
||||
// import * as https from "http";
|
||||
import Server from "socket.io";
|
||||
// import middleware from 'socketio-wildcard'
|
||||
const app = express.default();
|
||||
// const app = express.default();
|
||||
|
||||
let worker
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user