update 29
This commit is contained in:
@@ -6,6 +6,7 @@ const { createServer } = require('http');
|
||||
const cors = require('@koa/cors');
|
||||
const logger = require('./lib/logger');
|
||||
const { download, abortDownload } = require('./lib/downloader');
|
||||
const { ytdlpUpdater } = require('./lib/updater');
|
||||
|
||||
const app = new Koa()
|
||||
const server = createServer(app.callback())
|
||||
@@ -23,10 +24,13 @@ io.on('connection', socket => {
|
||||
logger('ws', args)
|
||||
download(socket, args)
|
||||
})
|
||||
|
||||
socket.on('abort', () => {
|
||||
abortDownload(socket)
|
||||
})
|
||||
|
||||
socket.on('update-bin', () => {
|
||||
ytdlpUpdater(socket)
|
||||
})
|
||||
})
|
||||
|
||||
io.on('disconnect', () => {
|
||||
|
||||
Reference in New Issue
Block a user