Class: SSE::Impl::SetRetryInterval

Inherits:
Struct
  • Object
show all
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

Instance Attribute Details

#millisecondsInt

Returns the new reconnect interval in milliseconds.

Returns:

  • (Int)

    the new reconnect interval in milliseconds



13
# File 'lib/ld-eventsource/impl/event_parser.rb', line 13

SetRetryInterval = Struct.new(:milliseconds)