ready to process
This commit is contained in:
@@ -201,7 +201,8 @@ class AgentNamespace(Namespace):
|
|||||||
chatmanager.load_next_chapter()
|
chatmanager.load_next_chapter()
|
||||||
|
|
||||||
def receive_ase_process(client_entry: HSAEngineClient, namespace_entry: Namespace, data, init_data):
|
def receive_ase_process(client_entry: HSAEngineClient, namespace_entry: Namespace, data, init_data):
|
||||||
# namespace_entry.emit('process', data['data'], room=init_data['room'], namespace='/agent')
|
print("receive_ase_process", data)
|
||||||
|
namespace_entry.emit('process', data, room=init_data['room'], namespace='/agent')
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def on_initiative(self,data): # 主动call
|
def on_initiative(self,data): # 主动call
|
||||||
|
|||||||
@@ -4,7 +4,7 @@ let system_message_idx = 0
|
|||||||
document.addEventListener('DOMContentLoaded', function () {
|
document.addEventListener('DOMContentLoaded', function () {
|
||||||
data = window.appData;
|
data = window.appData;
|
||||||
console.log(data);
|
console.log(data);
|
||||||
socket = io('wss://hsamooc.com/agent', {
|
socket = io('/agent', {
|
||||||
query: {
|
query: {
|
||||||
user_uuid: data.user_uuid,
|
user_uuid: data.user_uuid,
|
||||||
folder: data.folder
|
folder: data.folder
|
||||||
@@ -145,7 +145,7 @@ document.addEventListener('DOMContentLoaded', function () {
|
|||||||
if (typeof data === 'string'){
|
if (typeof data === 'string'){
|
||||||
data = JSON.parse(data);
|
data = JSON.parse(data);
|
||||||
}
|
}
|
||||||
|
console.log
|
||||||
// 遍历每个节点,并更新相应的条目
|
// 遍历每个节点,并更新相应的条目
|
||||||
for (const nodeName in data) {
|
for (const nodeName in data) {
|
||||||
const statusData = data[nodeName];
|
const statusData = data[nodeName];
|
||||||
|
|||||||
Reference in New Issue
Block a user