-
Notifications
You must be signed in to change notification settings - Fork 387
[ENH]Support for Socket 1.0.x #103
base: master
Are you sure you want to change the base?
Conversation
Great work. Is this backward compatible to older socket.io versions? |
@francoisTemasys Currently, ant build fails because of an unused PolicyUtils import in IOMessage.java. Other than that the main functions work properly, thanks for the update. |
@Trellmor The update keeps the library backward compatible without any change on your side. The client is going to detect if the server is 0.9.x or 1.0x and react accordingly @onuradsay I commited a fix. I just tested the ant build it works perfectly. I figured a bug, if you use the function Thread.sleep() in one of the onMessage/onConnect, it also stop the socket.io library (and you don't receive anything anymore). |
Thanks for your work. Is there a way to use rooms implementation (join & leave)? Edit: My mistakes, join & leave are server side, not client side. |
I am getting a null pointer exception when receiving an ack from the server. I m using socket.io version 0.9.14 on the server. This is the stack trace |
@vigbk Can you test this last fix? |
This crashes on the event connect itself. The connect event doesn't have field_data. Im guessing that is the reason it is crashing. FATAL EXCEPTION: xhr-polling |
@francoisTemasys thanks for the code, I tried to contact Gottox about this amazing update, but no response yet..
Thank you, |
@mjie I'm sorry but I don't think your questions have any link with upgrading to socket.io 1.0.x. In your case, use Gottox java client with a socket.io server 0.9.x version that would be more stable for the java client. I'm sure you can find plenty of documentation for what you are looking for if it's just 2 simples problems. |
@francoisTemasys Thanks for your guide! Since socket.io 0.9.x is better for Android, I finally chose this https://github.com/koush/AndroidAsync to test, as it has more 'Star', so far so good. For those who is new to Android and Java as me, you can start with this example: https://github.com/Thanhktm/socketio_android which is easy to use. Hope it would be helpful. |
im getting the following error: ERROR 13:59:34,482 [ConnectThread] PID- M- TID- AlertMonitor -Error occured |
@anthonythomasdesign I believe you are using the Gottox version and not my fork as there is nothing on line 322 in IOConnection.java for my fork. |
@francoisTemasys it looks like IOCallback.onConnect doesn't get called for connections to 0.9 servers. |
Hi, I am connecting to the server using the following code:
I make a connection but the "onConnect" event is never called but in server side i can see new connection. Thanks, |
…11ce3e6758843b6' Dated:August 10, 2014 to support SSL
@Trellmor Take a look at my fork for a fix for the onConnect handler not firing when connecting to 0.9.x servers. |
@francoisTemasys thanks for the upgrade.However, I get the same #100 FileNotFoundException as soon as I upgrade my socketIO server above 0.9.16.( I tried on 1.0 as well.) |
Hi, I'm new to android, I'm getting the the following error, 06-04 12:13:33.040: W/System.err(17338): SocketIOException: Error while handshaking As suggested i'm using socketIO server version 0.9.16, and folk of /Grantoo/socket.io-java-client The same code is working for http domain, but its not working for https and SSL protocols. Please help solving this. |
I had the same problem, but I solved the problem by forking from this version https://github.com/robertoandrade/socket.io-java-client.git. |
@ZhouningMan Thanks for the help its working fine now....! |
This patch handle the main functions of socket.io in the 1.0.x version:
-connect
-send message
-send event
-disconnect
TODO list:
-Test ack
-binary event
-binary ack