0

I am creating a websocket/server in ActionCable with Rails 5.

How do I go about connecting this with Android? I've seen a Socket.IO client with NodeJS, but nothing for Rails?

I would like the App to update in real time as well?

I looked into Autobahn, but I really couldn't find Rails specific info?

Amad27
  • 151
  • 1
  • 1
  • 8
  • Could you be a little more specific on your needs please ? What kind of exchanges do you want to settle between your Android device and your server ? – Jackyto Jan 17 '17 at 08:27
  • @Jackyto, JSON transfers. Say there is a teacher and a student. The teacher pushes a JSON question to the server, the server pushes it to the student real time – Amad27 Jan 17 '17 at 08:28

1 Answers1

0

Take a look to this question. I think you should use a Service which is a background task running and waiting for instructions and a Socket listening on a defined port on which your server will send your JSON.

Community
  • 1
  • 1
Jackyto
  • 1,569
  • 3
  • 15
  • 33