How do you spawn an EventMachine “inside” a Rails app?

前端 未结 8 2058
星月不相逢
星月不相逢 2020-12-13 14:54

I\'ve got a Rails application, and am looking to add some sort of WebSocket support to it. From various googling, it appears that the best Ruby based WebSocket solution is

8条回答
  •  北海茫月
    2020-12-13 15:14

    Don't know if this is what you are after. But if you would like to do provide some kind of socket-messaging system.

    Have a look at Faye. It provides message servers for Node.js and Rack. There is also a rails cast for this by Ryan Bates which should simplify the implementation.

    Hope that helps.

提交回复
热议问题