本文整理汇总了Python中autobahn.wamp.WampClientFactory.__init__方法的典型用法代码示例。如果您正苦于以下问题:Python WampClientFactory.__init__方法的具体用法?Python WampClientFactory.__init__怎么用?Python WampClientFactory.__init__使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类autobahn.wamp.WampClientFactory
的用法示例。
在下文中一共展示了WampClientFactory.__init__方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, test, peerIndex, onReady, onGone):
WampClientFactory.__init__(self, test.testee.url)
self.test = test
self.peerIndex = peerIndex
self.onReady = onReady
self.onGone = onGone
self.proto = None
示例2: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, peerIndex, onReady, onGone, test, result):
assert(self.protocol)
WampClientFactory.__init__(self, test.testee.url)
self.peerIndex = peerIndex
self.onReady = onReady
self.onGone = onGone
self.test = test
self.result = result
self.proto = None
示例3: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, options, debug):
self.options = options
self.user = "admin"
self.password = options["password"]
self.command = options["command"]
if self.command == 'connect':
self.reconnect = True
else:
self.reconnect = False
if options["spec"]:
self.config = json.loads(open(options["spec"]).read())
else:
self.config = None
WampClientFactory.__init__(self, options["wsuri"], debugWamp = debug)
示例4: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, config):
WampClientFactory.__init__(self, config.wsuri, debugWamp = config.debug)
self.config = config
self.receivedCnt = 0
self.receivedRtts = []
self.setProtocolOptions(failByDrop = False)
if config.skiputf8validate:
self.setProtocolOptions(utf8validateIncoming = False)
if config.skipmasking:
self.setProtocolOptions(maskClientFrames = False)
示例5: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, case, onReady, onGone, subscribeTopics):
WampClientFactory.__init__(self, case.url, debug=case.debugWs, debugWamp=case.debugWamp)
self.case = case
self.onReady = onReady
self.onGone = onGone
self.subscribeTopics = subscribeTopics
示例6: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, wsuri, user, password):
self.user = user
self.password = password
WampClientFactory.__init__(self, wsuri)
示例7: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, command_channel, *args, **kwargs):
self.command_channel = command_channel
WampClientFactory.__init__(self, *args, **kwargs)
示例8: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, options, reactor):
self.options = options
self.done = False
WampClientFactory.__init__(self,
self.options.server,
debugWamp = self.options.debug)
示例9: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, app):
WampClientFactory.__init__(self, app.url, debugWamp = app.debug)
self.app = app
self.proto = None
self.wasConnected = False
示例10: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, url, debug = False, debugCodePaths = False, debugWamp = False, debugApp = False):
WampClientFactory.__init__(self, url, debug = debug, debugCodePaths = debugCodePaths)
self.spiders = {}
self.is_first = 0
示例11: __init__
# 需要导入模块: from autobahn.wamp import WampClientFactory [as 别名]
# 或者: from autobahn.wamp.WampClientFactory import __init__ [as 别名]
def __init__(self, app, clientId):
WampClientFactory.__init__(self, ARGS.websocket_url, ARGS.debug)
self.protocol = None
self.app = app
self.clientId = clientId
self.failureRecorded = False