pusher / pusher-http-ruby

Ruby library for Pusher Channels HTTP API
https://pusher.com/channels
MIT License
664 stars 124 forks source link

Pusher.use_tls = false vs Pusher.encrypted = false #188

Open zoltan-nz opened 1 year ago

zoltan-nz commented 1 year ago

Hi There.

Trying to turn off the encryption in development mode. README suggests that we should use Pusher.use_tls = false. However, it does not exist in the Pusher class: https://github.com/pusher/pusher-http-ruby/blob/master/lib/pusher.rb#L36

Using Pusher.encrypted = false is working, but this feature is deprecated. https://github.com/pusher/pusher-http-ruby/blob/master/lib/pusher/client.rb#L35

I guess we should just add :use_tls to the list of def_delegators in module Pusher.

stale[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you'd like this issue to stay open please leave a comment indicating how this issue is affecting you. Thank you.

plicjo commented 4 months ago

Confirmed that this doesn't work as documented.

You can do Pusher.scheme = 'http' instead