ruby - Push updates to page in Rails -


I want to try to create a messaging app in the rail and I had to face a problem.

The app in chat, as soon as "USER1" sends them (and in the opposite direction), I need to push messages to "USER2". Can I apply some code to allow this to happen?

- This is one of the obvious answers.

But if you are creating a chat app, then I suggest not using the rail for the actual chat part. take a look at . Compared to the node rail, is very short and it is specifically tuned for server push. Experimenting with nodes takes about 10 minutes to work a chat app, resulting in both scalable apps , and backward compatible with old browsers (option by selecting the best available transport layer for your data, by selecting 5) You can pull railways and nodes in many ways in a well-documented manner. One of those ways is using a pub-all layer or, if your app is really simple, then do the whole thing in the node.

TL; DR: Use the tracks for authentication, ideas, and what's, use nodes js for the actual chat part. / P>

Comments