Java client to connect to SignalR?
Asked Answered
S

2

32

I'd like to connect to a SignalR-server from a java client. Is that possible?

Has anybody written a java-client to connect to SignalR?

Stupa answered 10/4, 2012 at 12:42 Comment(9)
+1. Thought about that in context of writing an Android native app, but I guess there's no Java client atm.Geoid
Too bad. Using it to build Android apps would be great!Stupa
Unfortunately, Java is not my native language. :) Do you know where I can find a description of the protocol used by SignalR?Stupa
I don't think there is a full description anywhere. It's changing quite frequently, so IMO there won't be a complete one before 1.0 airs. But having a brief description of at least the negotiation process and one of the transport methods would be good enough to have...Geoid
We'll start documenting the protocol pretty soon.Dory
As an option you can use the Javascript client and access it from Java through DWR.Sabah
Another option would be expose .Net client as a SOAP-based webservice and access it from Java (JAX-WS)Sabah
Have you had a look at github.com/SignalR/SignalR/wiki/SignalR-JS-Client-Hubs or have you found a good solution in the meantime?Skylar
I didnt find a solution so I started to develop one by myself. See my answer below.Stupa
S
11

I didnt find a SignalR-client for Android so I started to develop one by myself. You can checkit out at https://github.com/erizet/SignalA. Curently it's more like a proof-of-concept than a finnished library. It's now updated to protocol version 1.2 which is used in the 1.0 release of SignalR.

Stupa answered 24/10, 2012 at 12:9 Comment(3)
Hey Erik, I am in need of SignalR client for Java and I saw SignalA but the problem is that it does not (yet) support Hubs. Can you advice me what are my options?Gayden
I'm thinking of implementing Hubs...maybe. Another option is that you implement Hubs and contribute to the project. :)Stupa
Is there any tutorial available for the implementation of SignalA on Android?Perennial
E
5

Microsoft has just released a java client https://github.com/SignalR/java-client even an Android client.

Efrainefram answered 16/3, 2014 at 19:31 Comment(2)
Thanks for the link! I've written a short tutorial to get started with this client, since the documentation still seems limited.Twinberry
Great material, Steven!Efrainefram

© 2022 - 2024 — McMap. All rights reserved.