Add method 'addListener' to client.