Class: SSE::Impl::SetRetryInterval
- Inherits:
-
Struct
- Object
- Struct
- SSE::Impl::SetRetryInterval
- Defined in:
- lib/ld-eventsource/impl/event_parser.rb
Overview
Indicates that the SSE server sent a ‘retry:` field to override the client’s reconnection interval. You will only see this class if you use EventParser directly; Client will consume it and not pass it on.
Instance Attribute Summary collapse
-
#milliseconds ⇒ Int
The new reconnect interval in milliseconds.
Instance Attribute Details
#milliseconds ⇒ Int
Returns the new reconnect interval in milliseconds.
13 |
# File 'lib/ld-eventsource/impl/event_parser.rb', line 13 SetRetryInterval = Struct.new(:milliseconds) |