feat(utilities): changed default maxHttpBufferSize

This commit is contained in:
Taha Yassine Kraiem 2022-02-23 16:31:10 +01:00
parent 9fec874273
commit 29d3e130b6
2 changed files with 2 additions and 2 deletions

View file

@ -188,7 +188,7 @@ module.exports = {
wsRouter,
start: (server) => {
io = _io(server, {
maxHttpBufferSize: (parseInt(process.env.maxHttpBufferSize) || 1) * 1e6,
maxHttpBufferSize: (parseInt(process.env.maxHttpBufferSize) || 5) * 1e6,
cors: {
origin: "*",
methods: ["GET", "POST", "PUT"]

View file

@ -161,7 +161,7 @@ module.exports = {
wsRouter,
start: (server) => {
io = _io(server, {
maxHttpBufferSize: (parseInt(process.env.maxHttpBufferSize) || 1) * 1e6,
maxHttpBufferSize: (parseInt(process.env.maxHttpBufferSize) || 5) * 1e6,
cors: {
origin: "*",
methods: ["GET", "POST", "PUT"]