feat(assist): allow maxHttpBufferSize in bytes
This commit is contained in:
parent
d1658f555f
commit
d95e7c6211
1 changed files with 2 additions and 1 deletions
|
|
@ -26,7 +26,8 @@ const debug = process.env.debug === "1";
|
|||
|
||||
const createSocketIOServer = function (server, prefix) {
|
||||
io = _io(server, {
|
||||
maxHttpBufferSize: (parseInt(process.env.maxHttpBufferSize) || 5) * 1e6,
|
||||
// maxHttpBufferSize: (parseInt(process.env.maxHttpBufferSize) || 5) * 1e6,
|
||||
maxHttpBufferSize: parseInt(process.env.maxHttpBufferSizeBytes),
|
||||
cors: {
|
||||
origin: "*",
|
||||
methods: ["GET", "POST", "PUT"]
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue