当前位置: 首页>>代码示例>>Python>>正文


Python WampServerFactory.startFactory方法代码示例

本文整理汇总了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()
开发者ID:Inspire2Innovate,项目名称:crossbar,代码行数:11,代码来源:adminwebsocket.py

示例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()
开发者ID:jamjr,项目名称:crossbar,代码行数:7,代码来源:hubwebsocket.py

示例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)
开发者ID:HerculesCE,项目名称:ParaView,代码行数:6,代码来源:paraviewweb_wamp.py

示例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)
开发者ID:mikenon,项目名称:CommentsPubSub,代码行数:7,代码来源:pubsub_server.py

示例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)
开发者ID:luodaobin,项目名称:scratchbox,代码行数:5,代码来源:gephiwampbridge.py

示例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()


开发者ID:fregaham,项目名称:manaclash,代码行数:30,代码来源:abserver.py


注:本文中的autobahn.wamp.WampServerFactory.startFactory方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。