Am 16.03.2015 um 15:07 schrieb Rejo:
> I tried to add options=RegisterOptions(details_arg='details')
> to the register function, and I do get a CallDetails, but with all its
> attributes to None
To receive caller details, you need to:
1) register with RegisterOptions() to announce you are willing to
receive details
2) disclose the caller, by issuing the call with
CallOptions(disclose_me=True)
Your details will then have the "caller" attribute, which is the WAMP
session ID of the caller.
To get more information about the caller (such as IP or transport or
auth), you need to use metaevent
wamp.session.on_join
Here you will get everything. You can store that locally, and then look
it up as need in your procedure that only gets the session ID.
This is to avoid sending all and every detail on each call ..
Hope this helps - let me know if not;)
/Tobias
>
>
> On Monday, March 16, 2015 at 3:00:32 PM UTC+1, Rejo wrote:
>
> Hello,
>
> Is there a way to get the session information within the rpc
> function ? (same session information as we get in an authorizer)
>
> Best regards.
>
> --
> You received this message because you are subscribed to the Google
> Groups "Autobahn" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to
autobahnws+...@googlegroups.com
> <mailto:
autobahnws+...@googlegroups.com>.
> To post to this group, send email to
autob...@googlegroups.com
> <mailto:
autob...@googlegroups.com>.
> To view this discussion on the web visit
>
https://groups.google.com/d/msgid/autobahnws/86c25f21-6d93-41cc-a297-17c90091d354%40googlegroups.com
> <
https://groups.google.com/d/msgid/autobahnws/86c25f21-6d93-41cc-a297-17c90091d354%40googlegroups.com?utm_medium=email&utm_source=footer>.
> For more options, visit
https://groups.google.com/d/optout.