church_streamer/api/encoder/routes.mjs

15 lines
277 B
JavaScript
Raw Normal View History

2024-02-13 23:54:45 +00:00
export default class EncoderRoutes {
constructor(opts = {}) {
Object.assign(this, opts)
}
registerIo(server, ctx) {
ctx.socket.safeOn('encoder.status', this.status.bind(this))
}
status(ctx) {
ctx.socket.emit('encoder.status', { running: false })
}
}