Skip to content

Commit 08ca771

Browse files
committed
Release 1.0.0.RC1
1 parent 959b8fe commit 08ca771

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ plugins {
1717

1818

1919

20-
version "1.0.0-SNAPSHOT"
20+
version "1.0.0.RC1"
2121
group "org.grails.plugins"
2222

2323
apply plugin:"eclipse"

src/docs/asciidoc/serverSentEvents.adoc

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,12 @@ def index() {
2424
sleep 1000 <3>
2525
}
2626
subscriber.onCompleted() <4>
27-
} <5>
27+
}
2828
}
2929
----
3030

3131
<1> Call the `stream` method passing a closure that accepts an `rx.Subscriber` to start sending events
32-
<2> Emit a new item from the `Observable` using `onNext`
32+
<2> Emit a one or many items using `onNext`
3333
<3> Call `sleep` to simulate a slow request
3434
<4> Call `onCompleted` to complete the request
3535

@@ -51,7 +51,10 @@ function tickTock() {
5151
tickTock()
5252
----
5353

54-
In the above exmple the `onmessage` handler will be invoked every time the `Observable` emits an item.
54+
NOTE: The `EventSource` object is supported in http://caniuse.com/#feat=eventsource[most modern browsers], except Internet Explorer. You can use https://github.com/remy/polyfills/blob/master/EventSource.js[polyfills JavaScript] replacement for IE.
55+
56+
57+
In the above example the `onmessage` handler will be invoked every time an item is emitted.
5558

5659
If you wish to send a particular named event you can use the name argument of the `stream` method:
5760

0 commit comments

Comments
 (0)