Skip to content

Instantly share code, notes, and snippets.

@ilmsg
Forked from thejhh/app.js
Created January 20, 2014 10:16
Show Gist options
  • Save ilmsg/8517808 to your computer and use it in GitHub Desktop.
Save ilmsg/8517808 to your computer and use it in GitHub Desktop.
var express = require('express');
var app = module.exports = express.createServer();
var io = require('socket.io').listen(app);
io.configure('development', function(){
io.set('log level', 1);
io.set('transports', ['xhr-polling', 'websocket']);
});
io.configure('production', function(){
io.set('log level', 1);
io.set('transports', ['websocket', 'xhr-polling']);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment