File tree Expand file tree Collapse file tree 1 file changed +9
-6
lines changed
actionpack/lib/action_controller/metal Expand file tree Collapse file tree 1 file changed +9
-6
lines changed Original file line number Diff line number Diff line change @@ -77,12 +77,15 @@ def make_response!(request)
77
77
# Writing an object will convert it into standard SSE format with whatever
78
78
# options you have configured. You may choose to set the following options:
79
79
#
80
- # 1) Event. If specified, an event with this name will be dispatched on
81
- # the browser.
82
- # 2) Retry. The reconnection time in milliseconds used when attempting
83
- # to send the event.
84
- # 3) Id. If the connection dies while sending an SSE to the browser, then
85
- # the server will receive a +Last-Event-ID+ header with value equal to +id+.
80
+ # `:event`
81
+ # : If specified, an event with this name will be dispatched on the browser.
82
+ #
83
+ # `:retry`
84
+ # : The reconnection time in milliseconds used when attempting to send the event.
85
+ #
86
+ # `:id`
87
+ # : If the connection dies while sending an SSE to the browser, then the
88
+ # server will receive a `Last-Event-ID` header with value equal to `id`.
86
89
#
87
90
# After setting an option in the constructor of the SSE object, all future SSEs
88
91
# sent across the stream will use those options unless overridden.
You can’t perform that action at this time.
0 commit comments