@@ -36,29 +36,77 @@ class Pusher(object):
3636 :param host: Used for custom host destination
3737 :param port: Used for custom port destination
3838 :param timeout: Request timeout (in seconds)
39- :param encryption_master_key: Used to derive a shared secret between
40- server and the clients for payload encryption/decryption
41- :param cluster: Convention for other clusters than the main Pusher-one.
39+ :param encryption_master_key: deprecated, use encryption_master_key_base64
40+ :param encryption_master_key_base64: Used to derive a shared secret
41+ between server and the clients for payload encryption/decryption
42+ :param cluster: Convention for clusters other than the original Pusher cluster.
4243 Eg: 'eu' will resolve to the api-eu.pusherapp.com host
4344 :param backend: an http adapter class (AsyncIOBackend, RequestsBackend,
4445 SynchronousBackend, TornadoBackend)
4546 :param backend_options: additional backend
4647 """
4748 def __init__ (
48- self , app_id , key , secret , ssl = True , host = None , port = None ,
49- timeout = 5 , cluster = None , encryption_master_key = None , json_encoder = None , json_decoder = None ,
50- backend = None , notification_host = None , notification_ssl = True , ** backend_options ):
49+ self ,
50+ app_id ,
51+ key ,
52+ secret ,
53+ ssl = True ,
54+ host = None ,
55+ port = None ,
56+ timeout = 5 ,
57+ cluster = None ,
58+ encryption_master_key = None ,
59+ encryption_master_key_base64 = None ,
60+ json_encoder = None ,
61+ json_decoder = None ,
62+ backend = None ,
63+ notification_host = None ,
64+ notification_ssl = True ,
65+ ** backend_options ):
66+
5167 self ._pusher_client = PusherClient (
52- app_id , key , secret , ssl , host , port , timeout , cluster , encryption_master_key ,
53- json_encoder , json_decoder , backend , ** backend_options )
68+ app_id ,
69+ key ,
70+ secret ,
71+ ssl ,
72+ host ,
73+ port ,
74+ timeout , cluster ,
75+ encryption_master_key ,
76+ encryption_master_key_base64 ,
77+ json_encoder ,
78+ json_decoder ,
79+ backend ,
80+ ** backend_options )
5481
5582 self ._authentication_client = AuthenticationClient (
56- app_id , key , secret , ssl , host , port , timeout , cluster , encryption_master_key ,
57- json_encoder , json_decoder , backend , ** backend_options )
83+ app_id ,
84+ key ,
85+ secret ,
86+ ssl ,
87+ host ,
88+ port ,
89+ timeout ,
90+ cluster ,
91+ encryption_master_key ,
92+ encryption_master_key_base64 ,
93+ json_encoder ,
94+ json_decoder ,
95+ backend ,
96+ ** backend_options )
5897
5998 self ._notification_client = NotificationClient (
60- app_id , key , secret , notification_ssl , notification_host , port ,
61- timeout , cluster , encryption_master_key , json_encoder , json_decoder , backend ,
99+ app_id ,
100+ key ,
101+ secret ,
102+ notification_ssl ,
103+ notification_host ,
104+ port ,
105+ timeout ,
106+ cluster ,
107+ json_encoder ,
108+ json_decoder ,
109+ backend ,
62110 ** backend_options )
63111
64112
0 commit comments