Skip to content

Commit

Permalink
Update README.md (#62)
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
mibamur authored and elia committed Jul 4, 2016
1 parent 5d3be6e commit 815348e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,8 @@ EventSource
Event sources have been implemented and are easily configurable with blocks.

```ruby
require 'browser/event_source'

Browser::EventSource.new '/events' do |es|
es.on :message do |e|
alert e.data
Expand Down

0 comments on commit 815348e

Please sign in to comment.