'Connect with the current or specified SAMP Hub, start and register the
client.
Parameters
hub : `~astropy.samp.SAMPHubServer`, optional
The hub to connect to.
hub_params : dict, optional
Optional dictionary containing the lock-file content of the Hub
with which to connect. This dictionary has the form
``{<token-name>: <token-string>, ...}``.
pool_size : int, optional
The number of socket connections opened to communicate with the
Hub.'

def connect(self, hub=None, hub_params=None, pool_size=20):

    self.hub.connect(hub, hub_params, pool_size)
    self.client = SAMPClient(self.hub, **self.client_arguments)
    self.client.start()
    self.client.register()
