Init
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
<template>
|
||||
<h1>Oxspeak</h1>
|
||||
<ws />
|
||||
<server_list />
|
||||
|
||||
<category_list />
|
||||
@@ -11,6 +12,7 @@
|
||||
import Server_list from "@/components/server/server_list.vue";
|
||||
import Category_list from "@/components/category/category_list.vue";
|
||||
import Channel_list from "@/components/channel/channel_list.vue";
|
||||
import Ws from "@/components/ws.vue";
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
|
||||
17
frontend/src/components/ws.vue
Normal file
17
frontend/src/components/ws.vue
Normal file
@@ -0,0 +1,17 @@
|
||||
<script setup>
|
||||
import {onMounted, ref} from "vue";
|
||||
|
||||
const messages = ref([])
|
||||
|
||||
onMounted(() => {
|
||||
let ws = new WebSocket("ws://localhost:7000/handler/ws/");
|
||||
})
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<p></p>
|
||||
</template>
|
||||
|
||||
<style scoped>
|
||||
|
||||
</style>
|
||||
Reference in New Issue
Block a user