onError not called in Unitt-WebSocket (Android client)

13 views
Skip to first unread message

xkrja

unread,
Dec 1, 2011, 7:10:22 AM12/1/11
to unitt-project
First of all: thanks for a very useful library!

I use the Unitt-Websocket in an Android project and mostly it works
just fine but I've noticed an odd behavior: When I switch from mobile
to wifi network the socket goes down but the onError is not called. A
simple test shows that the socket can not send messages any more.
However, if I go the opposite way and switch from wifi to mobile the
socket also goes down but that time the onError is called. Do you guys
have an explanation for why there is a difference here? I have only
been able to test this on my real android phone and not on the
emulator.

Thanks for help!

/Kristian

Josh Morris

unread,
Dec 6, 2011, 11:04:56 AM12/6/11
to unitt-project
There may be an issue with the way the socket change is detected. I
will add a defect for this. Good find!

xkrja

unread,
Dec 7, 2011, 3:28:02 AM12/7/11
to unitt-project
Thanks! It would be great!

As a side note: I will see if I can test if the socket goes down if
the mobile network switches between for example 3G and H or H+.

/Kristian

Reply all
Reply to author
Forward
0 new messages