Skip to content

Commit c9c70d0

Browse files
committed
Update README to reference how to set the host and give EU cluster as example
1 parent 30ee66e commit c9c70d0

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,18 @@ pusher_client = Pusher::Client.new({
6363

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

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

68+
``` ruby
69+
pusher_client = Pusher::Client.new({
70+
app_id: 'your-pusher-app-id',
71+
key: 'your-pusher-key',
72+
secret: 'your-pusher-secret',
73+
host: 'your-pusher-host'
74+
})
75+
```
76+
77+
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`.
6778

6879
## Interacting with the Pusher service
6980

0 commit comments

Comments
 (0)