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