【发布时间】:2016-09-30 13:31:07
【问题描述】:
我有一个高速公路客户端,它使用高速公路上的 ApplicationRunner 类连接到 WAMP 路由器(交叉开关)。在主要部分中,它附加了我的 ApplicationSession 类“REScheduler”,如下所示:
if __name__ == '__main__':
from autobahn.twisted.wamp import ApplicationRunner
runner = ApplicationRunner(url=u"ws://localhost:8080/ws", realm=u"RE_acct")
runner.run(REScheduler, start_reactor=True, auto_reconnect=True)
现在我还需要应用程序运行器启动的反应器用于其他目的。就像例如打电话给reactor.callLater(...)。
我怎样才能访问这个反应堆。我在文档中没有找到任何内容。
【问题讨论】:
标签: python twisted autobahn crossbar