small refactor in ChatLogic

This commit is contained in:
Hepatica
2024-01-15 22:03:49 +01:00
parent 3e7d5b39bc
commit 6108498aaf

View File

@@ -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);
};