Skip to content

Commit 22263ca

Browse files
authored
Merge pull request #231 from pusher/fix/broken-readme-links
Fix broken links in README
2 parents d9cd1df + 65dd9ca commit 22263ca

1 file changed

Lines changed: 6 additions & 5 deletions

File tree

README.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,13 @@ There are a few additional options that can be used in all above methods:
9292

9393
```javascript
9494
const Pusher = require("pusher")
95+
const http = require("http")
9596

9697
const pusher = new Pusher({
9798
// you can set other options in any of the 3 ways described above
9899
proxy: "HTTP_PROXY_URL", // optional, URL to proxy the requests through
99100
timeout: TIMEOUT, // optional, timeout for all requests in milliseconds
100-
keepAlive: KEEP_ALIVE, // optional, enables keep-alive, defaults to false
101+
agent: new http.Agent({ keepAlive: true }), // optional, enables keep-alive
101102
})
102103
```
103104

@@ -170,7 +171,7 @@ pusher.sendToUser("user-1", "test_event", { message: "hello world" })
170171

171172
### Excluding event recipients
172173

173-
In order to avoid the client that triggered the event from also receiving it, a `socket_id` parameter can be added to the `params` object. For more information see: <http://pusher.com/docs/publisher_api_guide/publisher_excluding_recipients>.
174+
In order to avoid the client that triggered the event from also receiving it, a `socket_id` parameter can be added to the `params` object. For more information see: <https://pusher.com/docs/channels/server_api/excluding-event-recipients/>.
174175

175176
```javascript
176177
pusher.trigger(channel, event, data, { socket_id: "1302.1081607" })
@@ -390,23 +391,23 @@ pusher
390391
pusher.get({ path: "/channels", params: params })
391392
```
392393
393-
Information on the optional `params` and the structure of the returned JSON is defined in the [REST API reference](http://pusher.com/docs/rest_api#method-get-channels).
394+
Information on the optional `params` and the structure of the returned JSON is defined in the [REST API reference](https://pusher.com/docs/channels/library_auth_reference/rest-api/#method-get-channels).
394395
395396
#### Get the state of a channel
396397
397398
```javascript
398399
pusher.get({ path: "/channels/[channel_name]", params: params })
399400
```
400401
401-
Information on the optional `params` option property and the structure of the returned JSON is defined in the [REST API reference](http://pusher.com/docs/rest_api#method-get-channel).
402+
Information on the optional `params` option property and the structure of the returned JSON is defined in the [REST API reference](https://pusher.com/docs/channels/library_auth_reference/rest-api/#method-get-channel).
402403
403404
#### Get the list of users in a presence channel
404405
405406
```javascript
406407
pusher.get({ path: "/channels/[channel_name]/users" })
407408
```
408409
409-
The `channel_name` in the path must be a [presence channel](http://pusher.com/docs/presence). The structure of the returned JSON is defined in the [REST API reference](http://pusher.com/docs/rest_api#method-get-users).
410+
The `channel_name` in the path must be a [presence channel](https://pusher.com/docs/channels/using_channels/presence-channels/). The structure of the returned JSON is defined in the [REST API reference](https://pusher.com/docs/channels/library_auth_reference/rest-api/#method-get-users).
410411
411412
### WebHooks
412413

0 commit comments

Comments
 (0)