I am using socket.io v.1.0.3.
and try to tune for production.
var io = require('socket.io')(server);
io.configure('production', function()
{
log(" set config for production");
io.enable('browser client minification');
io.enable('browser client etag');
io.enable('browser client gzip');
io.set('log level', 1);
io.set('transports', [
'websocket', 'flashsocket', 'htmlfile', 'xhr-polling', 'jsonp-polling'
]);
});
Error indicating socket.io instance does not have configure
io.configure('production', function()
^
TypeError: Object
How?
Thank.
source
share