ios - Mobile sending message to each other with rails backend -
I did a search but none of them meets my needs, I can search for the wrong keywords If this is the case then please indicate me right direction.
I have railways for Android and iOS customers app and backend. I mobile users can enter their account and send messages to their friends. Right now I am using http request + push notification, to implement it. More specific, we will send the customer a and b , a with a message to B , and The server will push that message to B and add that message to the table with message with the unread property if b open message page, a and b will be read .
After doing some research, I realized that both A and B are sending messages for each other (i.e. Sending message page of A to B , and vice versa), it would be better to use socket to send messages, more efficient
now my question That I should use the rail code as the server socket and each customer just join the server , or A or B server socket? If rails in the form of server socket and there are so many traffic or open sockets at the same time, then is this a problem?
I think you can use a simple pub / sub-message for web / Android / iOS Are there. Faye:
IOS:
Android:
Comments
Post a Comment