简体   繁体   English

高速公路中的呼叫者识别| 蟒蛇

[英]Caller identification in Autobahn | Python

I am trying to find out how to disclose the caller in Autobahn|Python as described here: http://crossbar.io/docs/Caller-Identification/ I found the following in the docs : 我试图找出如何在Autobahn | Python中公开调用方,如下所述: http : //crossbar.io/docs/Caller-Identification/我在docs中发现了以下内容:

class autobahn.wamp.message.Call(request, procedure, args=None, kwargs=None, timeout=None, receive_progress=None, disclose_me=None)

and therefore tried: 因此尝试:

res = session.call(u'com.example.function', data, disclose_me=True)

with no luck. 没有运气。 Any help would be sincerely appreciated. 任何帮助将由衷的感谢。

OK, I figured it out: 好,我知道了:

from autobahn.wamp.types import CallOptions

options = CallOptions(on_progress=None, timeout=120, disclose_me=True)
res = session.call(u'com.example.function', server_events, options=options)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM