<commit_before>/*
 * Start File for nodeGame server with conf.
 */

var ServerNode = require('nodegame-server');

var options = {
    name: "nodeGame Server",
    port: 8080,
    verbosity: 10,
    dumpsys: false,
    dumpmsg: true,
    mail: false,
    io: { 
        set: {
            transports: ['websocket'],
            'log level': -1
        }
    },
    http: {}
};



// ServerNode accepts two additional parameters:
// - an instance of an http Express server
// - an instance of socket.io
// If not passed, they will be created with default settings
var sn = new ServerNode(options);

sn.addChannel({
    name: 'Ultimatum',
    admin: 'ultimatum/admin',
    player: 'ultimatum'
});

//sn.addChannel({
//    name: 'pr',
//    admin: 'pr/admin',
//    player: 'pr'
//});<commit_msg>switched socket.io transportation channel from websockets to xhr-polling to make it work with heroku<commit_after>/*
 * Start File for nodeGame server with conf.
 */

var ServerNode = require('nodegame-server');

var options = {
    name: "nodeGame Server",
    port: 8080,
    verbosity: 10,
    dumpsys: false,
    dumpmsg: true,
    mail: false,
    io: {
        set: {
            'transports': ['xhr-polling'],
            'polling duration': 10,
            'log level': -1
        }
    },
    http: {}
};



// ServerNode accepts two additional parameters:
// - an instance of an http Express server
// - an instance of socket.io
// If not passed, they will be created with default settings
var sn = new ServerNode(options);

sn.addChannel({
    name: 'Ultimatum',
    admin: 'ultimatum/admin',
    player: 'ultimatum'
});

//sn.addChannel({
//    name: 'pr',
//    admin: 'pr/admin',
//    player: 'pr'
//});
{'fraction_non_alphanumeric': 0.14210526315789473, 'fraction_numerical': 0.00935672514619883, 'mean_word_length': 2.388118811881188, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6285090', 'n_tokens_mistral': 560, 'n_tokens_neox': 539, 'n_words': 172}