How to use server sent events (SSE) in android? [c

2019-03-14 15:49发布

问题:

How to use server sent events (SSE) in android client application? Is there a java library for that?

回答1:

I use eventsource-java library. It's works perfectly on android.

upd Another library seems better. Usage: gist



回答2:

I am not sure but you can always try, capture your sse using javascript and as android have support for html5 it will work.

Refer this: http://developer.android.com/guide/webapps/webview.html