deemixer/server/src/websocket/modules/removeFromQueue.ts
2022-02-05 01:15:26 +01:00

13 lines
337 B
TypeScript

import { Server as WsServer } from 'ws'
import { consoleInfo } from '../../helpers/errors'
import { DeemixApp } from '../../app'
const eventName = 'removeFromQueue'
const cb = (data: any, __: any, ___: WsServer, deemix: DeemixApp) => {
deemix.cancelDownload(data)
consoleInfo(`Cancelled ${data}`)
}
export default { eventName, cb }