diff options
author | metamuffin <metamuffin@disroot.org> | 2022-09-09 11:42:06 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2022-09-09 11:42:06 +0200 |
commit | b6d93e0f322901dfc1fee23f3d396a68e61e1b29 (patch) | |
tree | 01ba855cf41fb53f84cd6eb504c4f4ba0134fdfa /client-web/source/index.ts | |
parent | afed94bb4609bd796102c9184f13fa29c5f92a48 (diff) | |
download | keks-meet-b6d93e0f322901dfc1fee23f3d396a68e61e1b29.tar keks-meet-b6d93e0f322901dfc1fee23f3d396a68e61e1b29.tar.bz2 keks-meet-b6d93e0f322901dfc1fee23f3d396a68e61e1b29.tar.zst |
crypto stuff
Diffstat (limited to 'client-web/source/index.ts')
-rw-r--r-- | client-web/source/index.ts | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/client-web/source/index.ts b/client-web/source/index.ts index 670cb46..21bf4b8 100644 --- a/client-web/source/index.ts +++ b/client-web/source/index.ts @@ -2,6 +2,7 @@ import { log } from "./logger.ts" import { create_menu } from "./menu.ts"; +import { SignalingConnection } from "./protocol/mod.ts"; import { Room } from "./room.ts" export const servers: RTCConfiguration = { @@ -17,11 +18,12 @@ export interface User { window.onload = () => main() -export function main() { +export async function main() { document.body.querySelector("p")?.remove() log("*", "starting up") const room_name = window.location.pathname.substring("/".length) - const room = new Room(room_name) + const conn = await (new SignalingConnection().connect(room_name)) + const room = new Room(conn) create_menu() document.body.append(room.el) } |