fix client bugs

This commit is contained in:
m1k1o 2020-09-27 01:34:18 +02:00
parent 16e2481c1c
commit aa1a3ec413
2 changed files with 4 additions and 4 deletions

View File

@ -18,6 +18,7 @@ import {
ControlClipboardPayload,
ScreenConfigurationsPayload,
ScreenResolutionPayload,
BroadcastStatusPayload,
AdminPayload,
AdminTargetPayload,
} from './messages'

View File

@ -22,7 +22,6 @@ export type WebSocketMessages =
| ScreenResolutionMessage
| ScreenConfigurationsMessage
| ChatMessage
| BroadcastCreateMessage
export type WebSocketPayloads =
| SignalProvidePayload
@ -39,6 +38,7 @@ export type WebSocketPayloads =
| ScreenConfigurationsPayload
| AdminPayload
| BroadcastStatusPayload
| BroadcastCreatePayload
export interface WebSocketMessage {
event: WebSocketEvents | string
@ -182,12 +182,11 @@ export interface ScreenConfigurationsPayload {
/*
BROADCAST PAYLOADS
*/
export interface BroadcastCreateMessage extends WebSocketMessage {
event: typeof EVENT.BROADCAST.CREATE
export interface BroadcastCreatePayload {
url: string
}
export interface BroadcastStatusPayload extends WebSocketMessage {
export interface BroadcastStatusPayload {
url: string
isActive: boolean
}