aiowamp.SessionABC¶
-
class
aiowamp.
SessionABC
[source]¶ Abstract session type.
A Session is a transient conversation between two Peers attached to a Realm and running over a Transport.
-
__init__
()¶ Initialize self. See help(type(self)) for accurate signature.
Methods
__init__
Initialize self. add_message_handler
(handler)param handler: close
([details, reason])param details: get_features
(role)param role: has_feature
(role, feature)param role: has_role
(role)param role: remove_message_handler
([handler])param handler: send
(msg)Send a message using the underlying transport. wait_until_done
()rtype: Optional
[Goodbye
]Attributes
details
rtype: Dict
[str
,ForwardRef
]goodbye
Goodbye message sent by the remote. realm
Name of the realm the session is attached to. roles
rtype: Set
[str
]session_id
Session ID. -