Skip to content

Commit

Permalink
Merge pull request #27 from ITCraftDevelopmentTeam/ws-bugfix
Browse files Browse the repository at this point in the history
修复反向 WS 中不配置 use_universal_server 时无法定位连接类型的问题
  • Loading branch information
This-is-XiaoDeng authored Feb 16, 2024
2 parents c2e650d + 2a7b00a commit a34ddaf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion network/v11/ws_reverse.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ def __init__(self, config: dict) -> None:
self.role = "Universal"

async def init_websocket_reverse_connection(config: dict) -> Callable:
config = BASE_CONFIG | config
if config["use_universal_client"]:
client = UniversalClient(config)
client.connect_task = asyncio.create_task(client.connect())
Expand All @@ -144,4 +145,4 @@ async def init_websocket_reverse_connection(config: dict) -> Callable:
asyncio.create_task(api_client.handle_api_requests())
event_client = EventClient(config)
event_client.connect_task = asyncio.create_task(event_client.connect())
return event_client.push_event
return event_client.push_event

0 comments on commit a34ddaf

Please sign in to comment.