Allow serving other than root of site, fixes #249

This commit is contained in:
Håvar Aambø Fosstveit
2020-05-07 21:03:07 +02:00
parent 02b6c617c5
commit 2373bf44d8
3 changed files with 17 additions and 5 deletions
+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, {