From aa1a3ec413370de4631ec4b0d0712141daa57f02 Mon Sep 17 00:00:00 2001 From: m1k1o Date: Sun, 27 Sep 2020 01:34:18 +0200 Subject: [PATCH] fix client bugs --- client/src/neko/index.ts | 1 + client/src/neko/messages.ts | 7 +++---- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/client/src/neko/index.ts b/client/src/neko/index.ts index 6769827..5913175 100644 --- a/client/src/neko/index.ts +++ b/client/src/neko/index.ts @@ -18,6 +18,7 @@ import { ControlClipboardPayload, ScreenConfigurationsPayload, ScreenResolutionPayload, + BroadcastStatusPayload, AdminPayload, AdminTargetPayload, } from './messages' diff --git a/client/src/neko/messages.ts b/client/src/neko/messages.ts index cc4ced5..3530c7c 100644 --- a/client/src/neko/messages.ts +++ b/client/src/neko/messages.ts @@ -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 }