简体   繁体   中英

Rails SSE doesn't work with Unicorn server

I want to use server-side events with rails. It works locally without any problem. But it does not trigger on production with unicorn. Is it possible to use SSE with unicorn?

您需要一个线程 Web 服务器,例如 Puma,因为每个连接都需要一个单独的线程来保持长时间运行的连接打开。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM