Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Android doesn't work when using web-socket-js #74

Open
geniuscodemonkey opened this issue Feb 1, 2012 · 6 comments
Open

Android doesn't work when using web-socket-js #74

geniuscodemonkey opened this issue Feb 1, 2012 · 6 comments

Comments

@geniuscodemonkey
Copy link

Tried websocket server on Android (Galaxy SII and Motorola Zoom) and both doesn't connect to websocket server. I've tried this on an iPad and Chrome on the PC and it works without issue :(

webServer = WebServers.createWebServer(port)
.add("/", this) // path to web content
.start();

(this implements WebSocketHandler).

@joewalnes
Copy link
Member

What happens when you try to connect? Client side, do you get any of the onopen/onclose/onerror events? Do you see any activity on the server? If you could provide a TCP capture (using a tool like tcpdump or WireShark) of the server side traffic, that would be really helpful.

@KushalP
Copy link
Contributor

KushalP commented Feb 2, 2012

Turns out that even in the latest (ICS) release of Android that WebSockets aren't yet supported. Are they going to be in the future? Most likely, given Google's emphasis on webapps, but for the time being you're going to have to fall back to comet.

I'm closing this issue as it's out of our hands.

@KushalP KushalP closed this as completed Feb 2, 2012
@geniuscodemonkey
Copy link
Author

Just so you know...I thought this was to do with the Flash Policy File, as I'm using a Flash proxy on Android and native sockets on iOS. I've debugged this to the point that it hits the FlashPolicyFileDecoder and I'm getting the Open event, immediately followed by the Close event. I've using the websocket-js library .. https://github.com/gimite/web-socket-js

@KushalP
Copy link
Contributor

KushalP commented Feb 2, 2012

That does change things slightly.

Reopening this issue with the title updated.

@KushalP KushalP reopened this Feb 2, 2012
@joewalnes
Copy link
Member

@geniuscodemonkey: Can you confirm that it works with the flash proxy on another deive, so we can determine if it's something Android specific or with web-socket-js. It would be helpful if you could either provide a TCP dump of the interaction, or a working example we could run.

@KushalP
Copy link
Contributor

KushalP commented Feb 7, 2012

The release of Chrome for Android Beta (CFA from here on) does slightly change things here. It has all of the features of Chrome 16 (and some from 17) with a faster release schedule.

If CFA ends up becoming the standard browser on Android, this ends up becoming a question of supporting Flash and this library.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants