feat(assist-server): removed unnecessary prefix for ws connections

This commit is contained in:
Alexander 2025-04-04 16:34:45 +02:00
parent cbbd480cca
commit 36e1a2fca2

View file

@ -6,7 +6,6 @@ const { onConnect, setSocketIOServer } = require("./app/socket");
const { startCacheRefresher } = require("./app/cache"); const { startCacheRefresher } = require("./app/cache");
const app = App(); const app = App();
const prefix = process.env.PREFIX || process.env.prefix || `/assist`;
const pingInterval = parseInt(process.env.PING_INTERVAL) || 5000; const pingInterval = parseInt(process.env.PING_INTERVAL) || 5000;
const getCompressionConfig = function () { const getCompressionConfig = function () {
@ -40,7 +39,7 @@ const io = new Server({
methods: ["GET", "POST"], methods: ["GET", "POST"],
credentials: true credentials: true
}, },
path: (prefix ? prefix : '') + '/socket', path: '/socket',
...getCompressionConfig() ...getCompressionConfig()
}); });