Skip to content

Commit 7487db2

Browse files
authored
show requiring pusher lib
1 parent a4b3b02 commit 7487db2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ After registering at <http://pusher.com> configure your app with the security cr
2424
Creating a new Pusher `client` can be done as follows.
2525

2626
``` ruby
27+
require 'pusher'
28+
2729
pusher_client = Pusher::Client.new(
2830
app_id: 'your-app-id',
2931
key: 'your-app-key',
@@ -36,6 +38,8 @@ The cluster value will set the `host` to `api-<cluster>.pusher.com`.
3638
If you want to set a custom `host` value for your client then you can do so when instantiating a Pusher client like so:
3739

3840
``` ruby
41+
require 'pusher'
42+
3943
pusher_client = Pusher::Client.new(
4044
app_id: 'your-app-id',
4145
key: 'your-app-key',

0 commit comments

Comments
 (0)