Add chat logic class for web sockets

This commit is contained in:
Hepatica
2024-01-15 20:29:32 +01:00
parent 63e4c8122c
commit f193fea9d2
5 changed files with 64 additions and 11 deletions

View File

@@ -34,6 +34,7 @@
<script>
import '@/assets/css/ComponentsStyles/chat.css'
import WritechatComponent from "@/components/WritechatComponent.vue";
import { SendMessageToChat } from "@/assets/js/chat/ChatLogic.js";
export default {
components: { WritechatComponent },
@@ -53,6 +54,8 @@ export default {
}
this.array.push(MsgUser)
SendMessageToChat(msg[0]);
if(this.array.length > 7) {
this.array.shift()