mirror of
https://github.com/KubaPro010/fm-dx-webserver.git
synced 2026-07-30 08:49:16 +02:00
some fixes
This commit is contained in:
+2
-2
@@ -1,6 +1,6 @@
|
||||
const WebSocket = require('ws');
|
||||
const { serverConfig, configExists } = require('./server_config');
|
||||
const { logChat } = require('./console');
|
||||
const { logInfo } = require('./console');
|
||||
const helpers = require('./helpers');
|
||||
const storage = require('./storage.js');
|
||||
|
||||
@@ -85,7 +85,7 @@ function createChatServer() {
|
||||
storage.chatHistory.push(messageData);
|
||||
if (storage.chatHistory.length > 50) storage.chatHistory.shift();
|
||||
|
||||
logChat(messageData);
|
||||
logInfo(`${message.nickname} (${message.ip}) sent a chat message: ${message.message}`);
|
||||
|
||||
chatWss.clients.forEach((client) => {
|
||||
if (client.readyState === WebSocket.OPEN) {
|
||||
|
||||
Reference in New Issue
Block a user