How do you spawn an EventMachine “inside” a Rails app?
问题 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 em-websocket running on EventMachine. I was wondering if there was a way to "integrate" an EventMachine reactor into Rails? Where do I put the initialization code? Is this the proper way to accomplish this? I've seen this example that falls back on Sinatra to do an EventMachine GET request, but that isn't quite what I'm