aiowamp.TransportABC

class aiowamp.TransportABC[source]

Abstract transport type.

A Transport connects two WAMP Peers and provides a channel over which WAMP messages for a WAMP Session can flow in both directions.

WAMP can run over any Transport which is message-based, bidirectional, reliable and ordered.

__init__()

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__ Initialize self.
close() Close the transport.
recv() Receive a message.
send(msg) Send a message.

Attributes

open Whether the transport is open and usable.
__str__()[source]

Return str(self).

Return type:str
open

Whether the transport is open and usable.

Return type:bool
close()[source]

Close the transport.

Return type:None
recv()[source]

Receive a message.

Return type:MessageABC
Returns:Received message.
send(msg)[source]

Send a message.

Parameters:msg (MessageABC) – Message to send.
Return type:None