asphalt.wamp.context
¶
-
class
asphalt.wamp.context.
CallContext
(parent, session_details, call_details, **kwargs)¶ Context class for procedure calls.
Procedure call handlers are passed an instance of this class as the first argument.
Variables: - session_id (int) – our own WAMP session ID
- progress (Optional[Callable]) – a callable through which the handler can send progress information to the caller
- caller_session_id (Optional[int]) – WAMP session ID of the caller (if disclosed)
- caller_auth_id (Optional[str]) – WAMP authentication ID (username) of the caller (if disclosed)
- caller_auth_role (Optional[str]) – WAMP authentication role of the caller (if disclosed)
- procedure (Optional[str]) – the actual name of the procedure (when using a pattern based registration)
- enc_algo (Optional[str]) – payload encryption algorithm that was in use, if any (e.g. cryptobox, or a custom algorithm)
-
class
asphalt.wamp.context.
EventContext
(parent, session_details, event_details, **kwargs)¶ Context class for WAMP events.
Event subscribers are passed an instance of this class as the first argument.
Variables: - session_id (int) – our own WAMP session ID
- publication_id (int) – publication ID of the event
- publisher_session_id (int) – WAMP session ID of the publisher, if disclosed
- publisher_auth_id (Optional[str]) – WAMP authentication ID (username) of the publisher (if disclosed)
- publisher_auth_role (Optional[str]) – WAMP authentication role of the publisher (if disclosed)
- topic (str) – the exact topic the event was received on
- enc_algo (Optional[str]) – payload encryption algorithm that was in use, if any (e.g. cryptobox, or a custom algorithm)