3

I have a rails route set up in my backend that uses ActionController::Live to stream server-sent events (HTML5 SSE, content-type data/event-stream). Ideally, I would like to interface directly with this route in my Android frontend using some Java library for dealing with server-sent events. However, I can't seem to find anything other than Java-backend (J2EE) libraries for SSE. My question is twofold: does there exist a Java/Android SSE client library, and if not, is there a simpler method that SSEs ultimately abstract to (like, are they just a glorified form of websocket or something of the like) such that I could use another type of library or normal Android networking?

Dennis L
  • 1,713
  • 14
  • 21

1 Answers1

0

You could try the library for instances are jersey and okhttp-sse

Subhanshuja
  • 390
  • 1
  • 3
  • 20
fjuan
  • 2,214
  • 2
  • 17
  • 20