Package com.launchdarkly.eventsource
Class CommentEvent
java.lang.Object
com.launchdarkly.eventsource.CommentEvent
- All Implemented Interfaces:
StreamEvent
Describes a comment line received from the stream.
An SSE comment is a line that starts with a colon. There is no defined meaning for this in the SSE specification, and most clients ignore it. It may be used to provide a periodic heartbeat from the server to keep connections from timing out.
- Since:
- 4.0.0
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
CommentEvent
Creates an instance.- Parameters:
text- the comment text, not including the leading colon
-
-
Method Details