Skip to content

Commit

Permalink
fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
cornerman committed Jan 29, 2024
1 parent c2e9f1d commit 2aa4039
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ object EventSourceObservable {
source.onerror = { ev =>
observer.unsafeOnError(new Exception(s"Failed EventSource (${ev.filename}:${ev.lineno}:${ev.colno}): ${ev.message}"))
}
source.onmessage = observer.unsafeOnNext
source.onmessage = { ev =>
observer.unsafeOnNext(ev)
}

Cancelable(source.close)
}
Expand Down

0 comments on commit 2aa4039

Please sign in to comment.