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

is there any plan on the client for multiple platform support? #1666

Closed
calidion opened this issue Jul 5, 2014 · 14 comments
Closed

is there any plan on the client for multiple platform support? #1666

calidion opened this issue Jul 5, 2014 · 14 comments

Comments

@calidion
Copy link

calidion commented Jul 5, 2014

Android, iOS, WP?

@rase-
Copy link
Contributor

rase- commented Jul 5, 2014

You can look into these for native clients:

https://github.com/nkzawa/socket.io-client.java
https://github.com/pkyeck/socket.IO-objc

Not aware of any WP native solutions, but I'm sure there's something.

@calidion
Copy link
Author

calidion commented Jul 8, 2014

Thanks, but they are not that finished.

@nkzawa
Copy link
Contributor

nkzawa commented Jul 8, 2014

@calidion Regarding Java client, only a few known issues exists for Android in the current release. I will fix them asap. Sorry for inconvenience.

@calidion
Copy link
Author

@nkzawa , thanks for the cool lib.
I am using it now.
but i don't know how to make xhr-polling possible.
cloud help me on this?

@nkzawa
Copy link
Contributor

nkzawa commented Jul 12, 2014

@calidion It uses xhr-polling as an initial transport by default, and attempts to upgrade to websocket afterward (the same behavior with JS client).

Please create new issues if you have any other problems:
https://github.com/nkzawa/socket.io-client.java/issues

@calidion
Copy link
Author

@nkzawa
seems not work for me;

@nkzawa
Copy link
Contributor

nkzawa commented Jul 13, 2014

@calidion Could you give me the details of you problem?
Please create another issue on https://github.com/nkzawa/socket.io-client.java/issues.

@calidion
Copy link
Author

@nkzawa

i am using socket.io in openshift.
i don't know if it is caused by openshift or by android java client.

if i put the server inside in the intranet both work fine.

but when uploading to openshift. both won't work.

the server side produce the following messages repeatedly on reconnecting:

warn: websocket connection invalid
info: transport end (undefined)

@nkzawa
Copy link
Contributor

nkzawa commented Jul 13, 2014

@calidion Is that the same issue with socketio/socket.io-client-java#15 ? If so, try just released v0.1.2.

Additionally, it looks like that there are some restrictions to websocket on Openshift.

https://www.openshift.com/blogs/paas-websockets
http://stackoverflow.com/questions/19948974/websocket-connection-to-openshift-app-failed

@calidion
Copy link
Author

Yes, that's why i want to know if there are xhr-polling options to use xhr-polling instead of websocket

@nkzawa
Copy link
Contributor

nkzawa commented Jul 13, 2014

If you want to use only polling, try the following:

IO.Options opts = new IO.Options();
opts.transports = new String[] {Polling.NAME};
socket = IO.socket("http://yourhost", opts);

@calidion
Copy link
Author

what version are you referring to ?
IO and Polling classes are not resolvable.

@calidion
Copy link
Author

sorry,
i currently use this one.
https://github.com/Gottox/socket.io-java-client

i will try yours instead.

@rase-
Copy link
Contributor

rase- commented Jan 12, 2015

Currently there are no plans to have any "official" clients other than the JS client, but there are plenty in the community for different environments.

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

No branches or pull requests

4 participants
@calidion @nkzawa @rase- and others