|
|
@ -14,9 +14,8 @@ const io = socketIO(server); |
|
|
|
|
|
|
|
|
|
|
|
app.get('/state', (req, res) => res.send('<pre>' + JSON.stringify(state) + '</pre>')); |
|
|
|
app.get('/state', (req, res) => res.send('<pre>' + JSON.stringify(state) + '</pre>')); |
|
|
|
|
|
|
|
|
|
|
|
process.on('SIGINT', function() { |
|
|
|
process.on('SIGINT', () => process.exit()); |
|
|
|
process.exit(); |
|
|
|
process.on('SIGTERM', () => process.exit()); |
|
|
|
}); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = { |
|
|
|
module.exports = { |
|
|
|
app, server, io |
|
|
|
app, server, io |
|
|
|