N
N
No_Time2013-01-22 20:45:16
Ruby on Rails
No_Time, 2013-01-22 20:45:16

How to implement longpolling in RoR with support for mobile clients?

It is necessary to implement real-time interaction of the RoR application with mobile clients (ios, android). Everything is clear in the browser, there are a bunch of js solutions. But it was not possible to really google how to do it correctly and beautifully between mobile clients. I want an easily integrated solution, without an additional web server. Probably it is necessary to dig towards EventMachine and web sockets, but again, it is not clear whether there will be problems with connecting mobile devices.
Has anyone come across something similar? For example mobile chat on rails? I don't want to reinvent the wheel ahead of time.
By the way, the server flies to nginx+passenger.
I would appreciate any help!

Answer the question

In order to leave comments, you need to log in

2 answer(s)
X
XimikS, 2013-01-22
@XimikS

Fourth rails seems to have what you need. Live Streaming kind of like :)

R
Renat Ibragimov, 2013-01-22
@MpaK999

In the 3rd, there’s no way yet, it’s better to take, for example, Cramp, just an asynchronous Ruby framework written using EventMachine, Fibers, etc. cramp.in/ with it will already be more interesting, the server will just have to be replaced from Passenger to Rainbows or Thin, and even better Puma.
Also in the treasury of help on the frontend socket.io/

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question