some log
This commit is contained in:
@@ -122,7 +122,7 @@ class AgentNamespace(Namespace):
|
|||||||
user_id = uuid2username[user_uuid]
|
user_id = uuid2username[user_uuid]
|
||||||
session['user_uuid'] = user_uuid
|
session['user_uuid'] = user_uuid
|
||||||
print(f'User connected with session user_uuid: {user_uuid}')
|
print(f'User connected with session user_uuid: {user_uuid}')
|
||||||
join_room(user_uuid, namespace='/agent')
|
join_room(user_uuid)
|
||||||
|
|
||||||
user_uuid2chatmanager = ex["user_uuid2chatmanager"]
|
user_uuid2chatmanager = ex["user_uuid2chatmanager"]
|
||||||
user_uuid2ase_client = ex["user_uuid2ase_client"]
|
user_uuid2ase_client = ex["user_uuid2ase_client"]
|
||||||
|
|||||||
@@ -81,6 +81,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
// 初始化聊天消息管理器
|
// 初始化聊天消息管理器
|
||||||
chatManager = new ChatMessageManager();
|
chatManager = new ChatMessageManager();
|
||||||
socket.on('connect', function () {
|
socket.on('connect', function () {
|
||||||
|
console.log('Connected to WebSocket server'+socket.id+"with user"+JSON.stringify(user_data));
|
||||||
socket.emit('login',JSON.stringify(user_data));
|
socket.emit('login',JSON.stringify(user_data));
|
||||||
});
|
});
|
||||||
socket.on('open-iframe', function() {
|
socket.on('open-iframe', function() {
|
||||||
|
|||||||
Reference in New Issue
Block a user