Skip to content

Commit d8513fe

Browse files
author
Quynh-Chi Nguyen
authored
Expose whether the client is alive (#13)
1 parent 3d1d304 commit d8513fe

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/ld-eventsource/client.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,10 @@ def close
190190
end
191191
end
192192

193+
def closed?
194+
@stopped.value
195+
end
196+
193197
private
194198

195199
def reset_http

0 commit comments

Comments
 (0)