1.5.1
This commit is contained in:
@@ -115,9 +115,7 @@ def registerSocketEvents(sdppp, sio):
|
||||
if len(sdppp.page_instances) == 0:
|
||||
return {"error": "Please connect at least one page instance"}
|
||||
|
||||
print('b_workflow_action', payload, payload['sid'])
|
||||
result = await sdppp.sio.call('b_workflow_action', payload, to=payload['sid'])
|
||||
print('b_workflow_action result')
|
||||
return result
|
||||
|
||||
@sio.event
|
||||
|
||||
@@ -7,6 +7,8 @@ class SDPPP:
|
||||
self.page_instances = dict()
|
||||
self.backend_instances = dict()
|
||||
|
||||
self.extra_server_info = {}
|
||||
|
||||
def attach_to_comfyui(self, PromptServer):
|
||||
self.sio = socketio.AsyncServer(
|
||||
async_mode='aiohttp',
|
||||
@@ -74,10 +76,13 @@ class SDPPP:
|
||||
else:
|
||||
raise socketio.exceptions.ConnectionRefusedError('unknown instance type ' + payload['type'])
|
||||
|
||||
return {
|
||||
"server_type": self.server_type
|
||||
ret = {
|
||||
"server_type": self.server_type,
|
||||
**self.extra_server_info
|
||||
}
|
||||
|
||||
return ret
|
||||
|
||||
|
||||
@sio.event
|
||||
async def disconnect(sid):
|
||||
|
||||
Reference in New Issue
Block a user