Skip to content

Commit 7e0c5d3

Browse files
author
Tom Kemp
committed
Update documentation
1 parent 2ad2332 commit 7e0c5d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,11 @@ channels_client = Pusher::Client.new(
3232
key: 'your-app-key',
3333
secret: 'your-app-secret',
3434
cluster: 'your-app-cluster',
35+
useTLS: true
3536
)
3637
```
3738

38-
The cluster value will set the `host` to `api-<cluster>.pusher.com`.
39+
The `cluster` value will set the `host` to `api-<cluster>.pusher.com`. The `useTLS` value is optional and defaults to `false`. It will set the `scheme` and `port`. Custom `scheme` and `port` values take precendence over `useTLS`.
3940

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

0 commit comments

Comments
 (0)