erizet / SignalA

A SignalR client for Android.
Apache License 2.0
193 stars 90 forks source link

WebSocket instead of longpolling #18

Open alchemistgo87 opened 11 years ago

alchemistgo87 commented 11 years ago

Hi erizet,

Is it possible to implement web socket instead of long polling in the library?

erizet commented 11 years ago

Of course. Just implemet a new transport instead of the SignalA.Longpolling library. Note. I think you need IIS8 on the server side to have websocket-support.

rnc505 commented 11 years ago

How could we do this? Use a websocket library (maybe like this https://github.com/tavendo/AutobahnAndroid) and create a new ITransport subclass or is there more to it than that?

erizet commented 11 years ago

No, it will suffice

rnc505 commented 11 years ago

I apologize, I'm a little confused. How can I integrate the websocket library, such that it is still very much a "SignalR" component, where if Sockets don't work/aren't enabled, it would fall back onto ServerSideEvents and then long polling (I could also look into a SSE library for integration)?

crathermel commented 10 years ago

@rnc505 :thumbsup:

YasserMojahed commented 7 years ago

Guys, Any success in this area?