r2/game-server/app.js.udp
lightings 4c647507d2 init
2023-03-27 17:26:02 +08:00

23 lines
440 B
Plaintext

var pomelo = require('pomelo');
/**
* Init app for client.
*/
var app = pomelo.createApp();
app.set('name', '$');
// app configuration
app.configure('production|development', function(){
app.set('connectorConfig',
{
connector : pomelo.connectors.udpconnector,
heartbeat : 3
});
});
// start app
app.start();
process.on('uncaughtException', function (err) {
console.error(' Caught exception: ' + err.stack);
});