p2p fixes

This commit is contained in:
mrfry
2023-03-26 19:11:07 +02:00
parent 2edc87d5dd
commit 16d6f04936
17 changed files with 707 additions and 582 deletions
+3 -1
View File
@@ -49,7 +49,9 @@ function setup(data: SubmoduleData): void {
const publicDir = publicdirs[0]
const uloadFiles = publicDir + 'chatFiles'
logger.Log(`Starting Socket.io Server on ${httpsServer ? 'https' : 'http'}`)
logger.Log(
`Chat: Starting Socket.io Server on ${httpsServer ? 'https' : 'http'}`
)
// https://socket.io/docs/v4/handling-cors/#Configuration
const io = new socket(httpsServer || httpServer, {
cors: {