feat(runtime): use real aibot WS transport by default (mock_transport=true opts out)

This commit is contained in:
openbot committed 2026-10-06 16:07:05 +08:00
1 parent bbe36be192
commit 436efc3b09
1 file changed
+6 -1
+6 -1
View File
@@ -73,7 +73,12 @@ def build_channels(cfg: dict[str, Any], mgr: SessionManager) -> list:
channels.append(ch)
if "wecom" in ccfg:
sink_and_inbound(WecomAibotChannel(ccfg["wecom"]))
from .channels.wecom_ws import make_ws_factory
wcfg = ccfg["wecom"]
# real long-connection transport unless the config says otherwise
ws_factory = None if wcfg.get("mock_transport") else make_ws_factory()
sink_and_inbound(WecomAibotChannel(wcfg, ws_factory=ws_factory))
if "wecom-app" in ccfg:
sink_and_inbound(WecomAppChannel(ccfg["wecom-app"]))
if "weixin" in ccfg: