我正在尝试使用SSE将一些指标公开为流。我可以从restController使用SSE事件,但当我添加自定义执行器端点时,它只是以正确的方式关闭了连接。: text/event-stream;charset=UTF-8id:0data:ping
* TCP_NODELAY set
* Connected to localhost (::1
为了理解如何最好地编写测试,我从essentially copying the trivial example seen here:my_controller.rb开始 class MyController'] = 'text/event-stream' 3.times do
sse.write({message:broke: ')