Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
io.configure('production', function() {
io.enable('browser client minification'); // send minified client
io.enable('browser client etag'); // apply etag caching logic based on version number
io.enable('browser client gzip'); // gzip the file
io.set('log level', 1); // reduce logging
io.set('transports', [ // enable all transports (optional if you want flashsocket)
'websocket'
, 'flashsocket'
, 'htmlfile'
, 'xhr-polling'
, 'jsonp-polling'
]);
});
io.configure('production', function(){
io.set('transports', ['websocket', 'xhr-polling']);
io.enable('browser client minification');
io.enable('browser client gzip');
io.set('log level', 1);
io.set('resource', '/socket.io');
});
io.configure('production', function(){
io.set('transports', ['websocket', 'xhr-polling']);
io.enable('browser client minification');
io.enable('browser client gzip');
io.set('log level', 1);
io.set('resource', '/socket.io');
});
io.configure('production', function(){
io.set('transports', ['websocket', 'xhr-polling']);
io.enable('browser client minification');
io.enable('browser client gzip');
io.set('log level', 1);
io.set('resource', '/socket.io');
});
io.configure('production', function(){
io.set('transports', ['websocket', 'xhr-polling']);
io.enable('browser client minification');
io.enable('browser client gzip');
io.set('log level', 1);
io.set('resource', '/socket.io');
});