nowelium/socket.io-titanium — Issue #6: websockets fail in android
Author: jdponomarev
Created: 2012-02-09 12:33:02+00:00
State: open

Hi Yusuke!
Thanks for the updates on this project!
Right now i'm trying to implement websocket connection on Android.
Everything is fine if im broadcasting messages globally, but when I do socket.broadcast.to("xxx") then I don't recieve anything on the phone. Sending messages from phone to node are always fine.
In my app I'm not restricting messages to a namespace, that might be a problem, I'll test it.
This problem occurs only on android, in iOS it's fine.

All the debug info I can provide is (not sure if it is related)

D/TiHttpClient( 1708): (KrollRuntimeThread) [43396,121325] Setting ready state to 1
W/TypeConverter( 1708): jsValueToJavaObject returning null
D/TiHttpClient( 1708): (TiHttpClient-6) [31,121356] Setting ready state to 2
D/TiHttpClient( 1708): (TiHttpClient-6) [1,121357] Setting ready state to 3
D/TiHttpClient( 1708): (TiHttpClient-6) [2,121359] Setting ready state to 4
W/TypeConverter( 1708): jsValueToJavaObject returning null
W/TypeConverter( 1708): jsValueToJavaObject returning null
W/TypeConverter( 1708): jsValueToJavaObject returning null