ios - Mobile sending message to each other with rails backend -



ios - Mobile sending message to each other with rails backend -

i did search non of them satisfy requirements, may searched wrong keywords, if please point me right direction.

i have android , ios client app, , rails backend. mobile users can login business relationship , send message friends. right i'm using http request + force notification implement this. more specific, have client a , b, a send message along b's id, , server force message b , add together message messages table unread property. if b open message page, messages of a , b become read.

after did research, realized if both a , b messaging each other, (i.e a's message page sending b, , vice versa), improve utilize socket send messages, more efficient.

now question should utilize rails server socket , each client connect server, or 1 of a or b server socket? if rails server socket , there lots of traffic or open sockets @ same time, gonna problem?

i think can utilize faye, simple pub/sub messaging web/android/ios. faye:https://github.com/faye/faye

ios:https://github.com/jayztemplier/fayeclient

android:https://github.com/saulpower/android-faye-client

ios ruby-on-rails sockets

Comments

Popular posts from this blog

assembly - What is the addressing mode for ld, add, and rjmp instructions? -

vowpalwabbit - Interpreting Vowpal Wabbit results: Why are some lines appended by "h"? -

Is there a way to convert an HTML page styled with Bootstrap CSS into email-compatible html? -