mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-26 23:12:48 -05:00
Add UI for streamdelay start/stop functionality
This commit is contained in:
@@ -50,4 +50,8 @@ export default class StreamdelayClient extends EventEmitter {
|
||||
setCensored(isCensored) {
|
||||
this.ws.send(JSON.stringify({ isCensored }))
|
||||
}
|
||||
|
||||
setStreamRunning(isStreamRunning) {
|
||||
this.ws.send(JSON.stringify({ isStreamRunning }))
|
||||
}
|
||||
}
|
||||
|
||||
@@ -306,6 +306,8 @@ async function main() {
|
||||
}
|
||||
} else if (msg.type === 'set-stream-censored' && streamdelayClient) {
|
||||
streamdelayClient.setCensored(msg.isCensored)
|
||||
} else if (msg.type === 'set-stream-running' && streamdelayClient) {
|
||||
streamdelayClient.setStreamRunning(msg.isStreamRunning)
|
||||
} else if (msg.type === 'create-invite') {
|
||||
const { secret } = await auth.createToken({
|
||||
kind: 'invite',
|
||||
|
||||
Reference in New Issue
Block a user