def _create_transport_factory(reactor, transport, session_factory):
 if (transport.type == 'websocket'):
  serializers = _create_transport_serializers(transport)
  return WampWebSocketClientFactory(session_factory, url=transport.url, serializers=serializers)
 elif (transport.type == 'rawsocket'):
  serializer = _create_transport_serializer(transport.serializer)
  return WampRawSocketClientFactory(session_factory, serializer=serializer)
 else:
  assert False, 'should not arrive here'

def _create_transport_factory ( reactor , transport , session_factory ) : if ( transport . type == 'websocket' ) : serializers = _create_transport_serializers ( transport ) return WampWebSocketClientFactory ( session_factory , url = transport . url , serializers = serializers ) elif ( transport . type == 'rawsocket' ) : serializer = _create_transport_serializer ( transport . serializer ) return WampRawSocketClientFactory ( session_factory , serializer = serializer ) else : assert False , 'should not arrive here'
create a wamp-over-xxx transport factory .