I’m developing an ASP.NET MVC app that is consumed by both by JavaScript in the browser and by a native Android app, and I wish to use SignalR. This is of course no problem in the browser, but I do not know how to interface from the Android app.
Are my only options:
- Find a pre-existing Android SignalR library. or
- Write custom code to interface with the server side SignalR interface?
I’m unaware of any Java based implementation that you could use in an Android application right now. So I think you’re looking at option #2.
Java certainly has the core functionality needed to to be able to communicate with at least the long-polling transport implementation of SignalR pretty easily. You’d just be looking at combining
HttpClientwithorg.json.