mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 04:09:29 +02:00
Add chat logic class for web sockets
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user