feat(utilities): WS configurable maxHttpBufferSize

This commit is contained in:
Taha Yassine Kraiem 2022-02-23 14:36:12 +01:00
parent 207638fca2
commit 2ce6ffbd96
3 changed files with 3 additions and 3 deletions

View file

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

View file

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

View file

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