no connect on server
This commit is contained in:
@@ -80,11 +80,8 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
// 初始化聊天消息管理器
|
||||
chatManager = new ChatMessageManager();
|
||||
socket.on('user-connected', function () {
|
||||
console.log('Connected to server');
|
||||
socket.emit('login',JSON.stringify(user_data));
|
||||
})
|
||||
socket.on('connect', function () {
|
||||
socket.emit('login',JSON.stringify(user_data));
|
||||
});
|
||||
socket.on('open-iframe', function() {
|
||||
OpenIframe(user_data);
|
||||
|
||||
Reference in New Issue
Block a user