feat(assist-server): removed unnecessary prefix for ws connections
This commit is contained in:
parent
cbbd480cca
commit
36e1a2fca2
1 changed files with 1 additions and 2 deletions
|
|
@ -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()
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue