Skip to content

Commit

Permalink
Deprecate config.sockets.maxBufferSize in favor of `config.sockets.…
Browse files Browse the repository at this point in the history
…maxHttpBufferSize`

refs #30
  • Loading branch information
sgress454 committed Oct 24, 2016
1 parent d107e6c commit f5bf545
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/initialize.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ module.exports = function ToInitialize(app) {
opts.pingInterval = app.config.sockets.pingInterval;
}
if (app.config.sockets.maxBufferSize) {
opts.maxBufferSize = app.config.sockets.maxBufferSize;
app.log.error('`sails.config.sockets.maxBufferSize is deprecated; please use `sails.config.sockets.maxHttpBufferSize` instead.');
opts.maxHttpBufferSize = app.config.sockets.maxBufferSize;
}
if (app.config.sockets.maxHttpBufferSize) {
opts.maxHttpBufferSize = app.config.sockets.maxHttpBufferSize;
}
if (app.config.sockets.transports) {
opts.transports = app.config.sockets.transports;
Expand Down

0 comments on commit f5bf545

Please sign in to comment.