How to use the socket.io.set function in socket

To help you get started, we’ve selected a few socket examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github vincentwoo / setgame / server.js View on Github external
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'
  ]);
});
github cdapio / cdap / web-cloud-app / server / sandbox / main.js View on Github external
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');
						});
github cdapio / cdap / server / sandbox / main.js View on Github external
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');
						});
github cdapio / cdap / web-cloud-app / server / sandbox / main.js View on Github external
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');
						});
github cdapio / cdap / server / sandbox / main.js View on Github external
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');
						});

socket

Socket is a connect clone for simple socket based applications

MIT
Latest version published 12 years ago

Package Health Score

40 / 100
Full package analysis