|
4 | 4 |
|
5 | 5 | module Pusher
|
6 | 6 | class Client
|
7 |
| - attr_accessor :scheme, :host, :port, :app_id, :key, :secret, :notification_host, :notification_scheme, :encryption_master_key |
| 7 | + attr_accessor :scheme, :host, :port, :app_id, :key, :secret, :encryption_master_key |
8 | 8 | attr_reader :http_proxy, :proxy
|
9 | 9 | attr_writer :connect_timeout, :send_timeout, :receive_timeout,
|
10 | 10 | :keep_alive_timeout
|
@@ -45,25 +45,17 @@ def initialize(options = {})
|
45 | 45 | merged_options[:host] = "api.pusherapp.com"
|
46 | 46 | end
|
47 | 47 |
|
48 |
| - # TODO: Change host name when finalized |
49 |
| - merged_options[:notification_host] = |
50 |
| - options.fetch(:notification_host, "nativepush-cluster1.pusher.com") |
51 |
| - |
52 |
| - merged_options[:notification_scheme] = |
53 |
| - options.fetch(:notification_scheme, "https") |
54 |
| - |
55 |
| - @scheme, @host, @port, @app_id, @key, @secret, @notification_host, @notification_scheme = |
| 48 | + @scheme, @host, @port, @app_id, @key, @secret = |
56 | 49 | merged_options.values_at(
|
57 |
| - :scheme, :host, :port, :app_id, :key, :secret, :notification_host, :notification_scheme |
| 50 | + :scheme, :host, :port, :app_id, :key, :secret |
58 | 51 | )
|
59 | 52 |
|
60 | 53 | if options.has_key?(:encryption_master_key_base64)
|
61 | 54 | @encryption_master_key =
|
62 | 55 | Base64.strict_decode64(options[:encryption_master_key_base64])
|
63 | 56 | end
|
64 | 57 |
|
65 |
| - @http_proxy = nil |
66 |
| - self.http_proxy = options[:http_proxy] if options[:http_proxy] |
| 58 | + @http_proxy = options[:http_proxy] |
67 | 59 |
|
68 | 60 | # Default timeouts
|
69 | 61 | @connect_timeout = 5
|
|
0 commit comments