From e0cabfea7c7b442acd3636e7495958b87e253176 Mon Sep 17 00:00:00 2001
From: Melonai <einebeere@gmail.com>
Date: Sat, 22 May 2021 18:18:56 +0200
Subject: Request and Share communication

---
 assets/src/components/Request.svelte | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 assets/src/components/Request.svelte

(limited to 'assets/src/components/Request.svelte')

diff --git a/assets/src/components/Request.svelte b/assets/src/components/Request.svelte
new file mode 100644
index 0000000..134c4d5
--- /dev/null
+++ b/assets/src/components/Request.svelte
@@ -0,0 +1,21 @@
+<script lang="ts">
+    import { getToken, joinRequestChannel } from "../network/socket";
+    import getShareToken from "../utils/getShareToken";
+
+    const startConnection = async () => {
+        const token = await getToken();
+        joinRequestChannel(token, getShareToken());
+    };
+
+    startConnection();
+</script>
+
+<main>
+    <h1>Requesting</h1>
+</main>
+
+<style>
+    h1 {
+        font-size: 4em;
+    }
+</style>
-- 
cgit 1.4.1

