start realtime kills
This commit is contained in:
@@ -5,6 +5,7 @@ import cors from 'cors'
|
|||||||
import client from './client/client'
|
import client from './client/client'
|
||||||
import { dbReady } from './db/db'
|
import { dbReady } from './db/db'
|
||||||
import processAll from './process/process'
|
import processAll from './process/process'
|
||||||
|
import listenKills from './process/onKill'
|
||||||
|
|
||||||
const app = express()
|
const app = express()
|
||||||
const port = 3000
|
const port = 3000
|
||||||
@@ -22,6 +23,7 @@ export default
|
|||||||
new Promise(async (resolve, reject) => {
|
new Promise(async (resolve, reject) => {
|
||||||
await dbReady()
|
await dbReady()
|
||||||
await processAll()
|
await processAll()
|
||||||
|
await listenKills()
|
||||||
const listenServer = app.listen(port, '0.0.0.0', () => {
|
const listenServer = app.listen(port, '0.0.0.0', () => {
|
||||||
console.log(`Tone client api listening on port ${port}`)
|
console.log(`Tone client api listening on port ${port}`)
|
||||||
resolve(listenServer)
|
resolve(listenServer)
|
||||||
|
|||||||
Reference in New Issue
Block a user