Skip to content

Commit

Permalink
Update README to reference how to set the host and give EU cluster as…
Browse files Browse the repository at this point in the history
… example
  • Loading branch information
hamchapman committed Dec 1, 2015
1 parent 30ee66e commit c9c70d0
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,18 @@ pusher_client = Pusher::Client.new({

This `client` will have all the functionality listed on the main Pusher class (which proxies to a client internally).

If you want to set the `host` value for your client then you can do so when instantiating a Pusher client like so:

``` ruby
pusher_client = Pusher::Client.new({
app_id: 'your-pusher-app-id',
key: 'your-pusher-key',
secret: 'your-pusher-secret',
host: 'your-pusher-host'
})
```

This is useful if, for example, you've created an app on the EU cluster and wish to set the host to be `api-eu.pusher.com`.

## Interacting with the Pusher service

Expand Down

0 comments on commit c9c70d0

Please sign in to comment.