This commit is contained in:
Cai
2025-10-20 16:03:19 +08:00
parent e24aa12e85
commit 5f8f6c941d
9 changed files with 4334 additions and 91 deletions

View File

@@ -19,9 +19,9 @@ document.addEventListener('DOMContentLoaded', function () {
});
// 监听来自服务器的消息
socket.on('voiceMessage', function (data) {
console.log(data)
const input = document.createElement('messageInput');
input.data = data['data'];
console.log(data);
const input = document.getElementById('messageInput');
input.value += data;
});
socket.on('message', function (data) {
// 显示服务器的回复消息