From 4f926ff6baff0621e3fa0cb5873b082f9ef963b2 Mon Sep 17 00:00:00 2001 From: metamuffin Date: Mon, 29 Apr 2024 20:12:56 +0200 Subject: stream previews on request --- client-web/source/protocol/mod.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'client-web/source/protocol') diff --git a/client-web/source/protocol/mod.ts b/client-web/source/protocol/mod.ts index 805600d..d554820 100644 --- a/client-web/source/protocol/mod.ts +++ b/client-web/source/protocol/mod.ts @@ -87,6 +87,7 @@ export class SignalingConnection { this.websocket.send(JSON.stringify(data)) } async send_relay(data: RelayMessage, recipient?: number | null) { + log("ws", "->", data, recipient ? recipient : " ") recipient ??= undefined // null -> undefined const packet: RelayMessageWrapper = { inner: data, sender: this.my_id! } const message = await encrypt(this.key!, JSON.stringify(packet)) -- cgit v1.2.3-70-g09d2