mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-19 14:41:25 +00:00
remove hardcoded values
This commit is contained in:
@@ -40,6 +40,8 @@ ws_process = None
|
|||||||
ws_thread = None
|
ws_thread = None
|
||||||
web_operator_queue = queue.Queue()
|
web_operator_queue = queue.Queue()
|
||||||
|
|
||||||
|
RECONNECTION_ATTEMPTS = 3
|
||||||
|
RECONNECTION_DELAY = 2
|
||||||
IFC_TASK_ATTRIBUTE_MAP = {
|
IFC_TASK_ATTRIBUTE_MAP = {
|
||||||
"pStart": "ScheduleStart",
|
"pStart": "ScheduleStart",
|
||||||
"pEnd": "ScheduleFinish",
|
"pEnd": "ScheduleFinish",
|
||||||
@@ -147,7 +149,12 @@ class Web(blenderbim.core.tool.Web):
|
|||||||
print(f"Already connected to websocket server on port: {port}")
|
print(f"Already connected to websocket server on port: {port}")
|
||||||
return
|
return
|
||||||
|
|
||||||
sio = socketio.AsyncClient(reconnection=True, reconnection_attempts=3, reconnection_delay=2, logger=True)
|
sio = socketio.AsyncClient(
|
||||||
|
reconnection=True,
|
||||||
|
reconnection_attempts=RECONNECTION_ATTEMPTS,
|
||||||
|
reconnection_delay=RECONNECTION_DELAY,
|
||||||
|
logger=True,
|
||||||
|
)
|
||||||
|
|
||||||
ws_thread = AsyncioThread()
|
ws_thread = AsyncioThread()
|
||||||
ws_thread.daemon = True
|
ws_thread.daemon = True
|
||||||
|
|||||||
Reference in New Issue
Block a user