Allow serving other than root of site, fixes #249

This commit is contained in:
Håvar Aambø Fosstveit committed 2020-05-07 21:03:07 +02:00
1 parent 02b6c617c5
commit 2373bf44d8
3 files changed
+17 -5

No files matched your search

+1 -1
View File
@@ -494,7 +494,7 @@ function isPathAlreadyTaken(url)
*/
async function runWebSocketServer()
{
io = require('socket.io')(mainListener);
io = require('socket.io')(mainListener, { path: '/' });
io.use(
sharedSession(session, {