pusher / pusher-http-python

Pusher Channels HTTP API library for Python
https://pusher.com/docs/server_api_guide
MIT License
376 stars 113 forks source link

notification_client not passing encryption_master_key to super initializer #132

Closed laeos closed 5 years ago

laeos commented 5 years ago

Client has a new parameter, encryption_master_key, NotificationClient is not updated to pass it around. This causes problems, especially if you pass in a custom json_encoder.

NotificationClient(Client):
 __init__(...)
        super(NotificationClient, self).__init__(
            app_id, key, secret, ssl, host, port, timeout, cluster,
            json_encoder, json_decoder, backend, **backend_options)
Client(...)
    def __init__(
            self, app_id, key, secret, ssl=True, host=None, port=None,
            timeout=5, cluster=None, encryption_master_key=None, 
            json_encoder=None, json_decoder=None,
            backend=None, **backend_options):