feat(utilities): WS configurable maxHttpBufferSize
This commit is contained in:
parent
207638fca2
commit
2ce6ffbd96
3 changed files with 3 additions and 3 deletions
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue