Skip to content

Commit

Permalink
Fixed typo in readme
Browse files Browse the repository at this point in the history
  • Loading branch information
wildfalcon committed May 12, 2010
1 parent f4d07de commit 8b09e5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Asynchronous triggering

To avoid blocking in a typical web application, if you are running inside eventmachine (for example if you use the thin server), you may wish to use the `trigger_async` method which uses the em-http-request gem to make api requests to pusher. It returns a deferrable which you can optionally bind to with success and failure callbacks. This is not a gem dependency, so you will need to install it manually.

d = Pusher['a_channel'].trigger('an_event', {:some => 'data'}, socket_id)
d = Pusher['a_channel'].trigger_async('an_event', {:some => 'data'}, socket_id)
d.callback {
# Do something on success
}
Expand Down

0 comments on commit 8b09e5f

Please sign in to comment.