wampy.session module

class session.Session(client, router, transport, message_handler)[source]

Bases: object

A transient conversation between two Peers attached to a Realm and running over a Transport.

WAMP Sessions are established over a WAMP Connection which is the responsibility of the Transport object.

Each wampy Session manages its own WAMP connection via the Transport.

Once the connection is established, the Session is begun when the Realm is joined. This is achieved by sending the HELLO message.

Note

Routing occurs only between WAMP Sessions that have joined the same Realm.

begin()[source]
end()[source]
host
id
port
realm
recv_message(timeout=5)[source]
roles
send_message(message_obj)[source]