mirror of
https://github.com/yawaflua/LuckyDiamond.git
synced 2025-12-10 20:29:35 +02:00
small refactor in ChatLogic
This commit is contained in:
@@ -12,12 +12,12 @@ export function ConnectToChat() {
|
||||
|
||||
webSocket.onopen = function () {
|
||||
console.log('Connection established');
|
||||
// webSocket.send('Hello, Server!');
|
||||
};
|
||||
|
||||
webSocket.onmessage = function (event) {
|
||||
|
||||
eventBus.emit('dataChat', event.data)
|
||||
|
||||
console.log('Message from Server:', event.data);
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user