Implement call encryption

Security fixes
This commit is contained in:
2025-10-01 22:50:32 +03:00
Unverified
parent a424ea009d
commit 1b2f825a74
9 changed files with 657 additions and 27 deletions
+2 -2
View File
@@ -6,7 +6,7 @@
*/
import { API_WS_BASE_URL } from "./config";
import type { WebSocketMessage } from "./types";
import type { CallSignalingMessage, WebSocketMessage } from "./types";
import { delay } from "@/utils/utils";
import { CallSignalingHandler } from "@/core/calls/signaling";
@@ -109,7 +109,7 @@ async function onError() {
websocket.addEventListener("message", (e) => {
try {
const response: WebSocketMessage<any> = JSON.parse(e.data);
const response: CallSignalingMessage = JSON.parse(e.data);
// Handle call signaling messages
if (callSignalingHandler && response.type === "call_signaling") {