def __init__(self, provider, middleware=None):
    '\n        Create a new Client with an FServiceProvider containing a transport\n        and protocol factory.\n\n        Args:\n            provider: FServiceProvider\n            middleware: ServiceMiddleware or list of ServiceMiddleware\n        '
    middleware = (middleware or [])
    if (middleware and (not isinstance(middleware, list))):
        middleware = [middleware]
    super(Client, self).__init__(provider, middleware=middleware)
    middleware += provider.get_middleware()
    self._methods.update({'ping': Method(self._ping, middleware)})
Create a new Client with an FServiceProvider containing a transport
and protocol factory.

Args:
    provider: FServiceProvider
    middleware: ServiceMiddleware or list of ServiceMiddleware
def __init__(self, provider, middleware=None):
    '\n        Create a new Client with an FServiceProvider containing a transport\n        and protocol factory.\n\n        Args:\n            provider: FServiceProvider\n            middleware: ServiceMiddleware or list of ServiceMiddleware\n        '
    middleware = (middleware or [])
    if (middleware and (not isinstance(middleware, list))):
        middleware = [middleware]
    super(Client, self).__init__(provider, middleware=middleware)
    middleware += provider.get_middleware()
    self._methods.update({'ping': Method(self._ping, middleware)})