This commit is contained in:
marlon-erler
2024-07-09 11:39:23 +02:00
parent 4003ab701a
commit ff0f3d9499
3 changed files with 66 additions and 42 deletions
+4 -11
View File
@@ -1,17 +1,8 @@
import * as React from "bloatless-react";
import {
arrayToUint8,
decrypt,
encrypt,
generateIV,
importKey,
uInt8ToArray,
} from "../cryptUtility";
import UDNFrontend from "udn-frontend";
import { chats } from "./chatModel";
import { serverAddress } from "./viewModel";
import { translation } from "../translations";
export const UDN = new UDNFrontend();
@@ -52,7 +43,9 @@ UDN.onconnect = () => {
UDN.onmessage = (data) => {
chats.value.forEach((chat) => {
chat.onmessage(data);
})
};
UDN.ondisconnect = () => {