本文整理汇总了Python中autobahn.wamp.WampServerFactory.startFactory方法的典型用法代码示例。如果您正苦于以下问题:Python WampServerFactory.startFactory方法的具体用法?Python WampServerFactory.startFactory怎么用?Python WampServerFactory.startFactory使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类autobahn.wamp.WampServerFactory
的用法示例。
在下文中一共展示了WampServerFactory.startFactory方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: startFactory
# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import startFactory [as 别名]
def startFactory(self):
WampServerFactory.startFactory(self)
log.msg("AdminWebSocketFactory started [speaking %s]" % self.protocols)
log.msg("debugWamp: %s" % self.debugWamp)
log.msg("debugApp: %s" % self.debugApp)
self.updateAvailable = {"update-available": False}
self.autocheckForUpdates()
示例2: startFactory
# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import startFactory [as 别名]
def startFactory(self):
WampServerFactory.startFactory(self)
self.setOptionsFromConfig()
log.msg("HubWebSocketFactory started [speaking %s, %s]" % (self.protocols, self.versions))
self.publishStats()
示例3: startFactory
# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import startFactory [as 别名]
def startFactory(self):
if not self._reaper:
self._reaper = reactor.callLater(self._timeout, lambda: reactor.stop())
WampServerFactory.startFactory(self)
示例4: startFactory
# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import startFactory [as 别名]
def startFactory(self):
WampServerFactory.startFactory(self)
global PubSubConnection
PubSubConnection = self
reactor.callLater(5, self.connectComment)
示例5: startFactory
# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import startFactory [as 别名]
def startFactory(self):
WampServerFactory.startFactory(self)
reactor.callLater(5, self.connectGephi)
示例6: range
# 需要导入模块: from autobahn.wamp import WampServerFactory [as 别名]
# 或者: from autobahn.wamp.WampServerFactory import startFactory [as 别名]
game_map[game_id] = game
if __name__ == '__main__':
# Create game tables
for i in range(4):
create_game()
log.startLogging(sys.stdout)
g_factory = WampServerFactory("ws://localhost:8080")
g_factory.protocol = MyServerProtocol
g_factory.startFactory()
resource = WebSocketResource(g_factory)
root = File("web")
root.putChild("ws", resource)
site = Site(root)
site.protocol = HTTPChannelHixie76Aware
reactor.listenTCP(8080, site)
reactor.run()