aiowamp.connect_transport

aiowamp.connect_transport(config)[source]

Connect a transport based on the config.

Parameters:

config (CommonTransportConfig) – Config to create the transport with.

Return type:

TransportABC

Returns:

A connected transport.

Raises:
  • KeyError – If no transport factory could be found for the config’s url.
  • Exception – If the connection fails.

Notes

Uses aiowamp.get_transport_factory to get the transport factory from which the transport is created.