tristandunn / pusher-fake

A fake Pusher server for development and testing.
https://rubygems.org/gems/pusher-fake
MIT License
173 stars 32 forks source link

Only works with Pusher default client #37

Closed naw closed 9 years ago

naw commented 9 years ago

Setting Pusher.port and Pusher.host (as is done in support/base.rb) only affects the default Pusher client. Anyone instantiating specific Pusher clients (i.e. with Pusher::Client.new) won't get the fake host and port automatically.

I'm not sure there is a clean way to do this, especially since a client might be instantiated before any PusherFake code is executed.

Therefore, perhaps a documentation warning would be adequate?