android-websockets
android-websockets copied to clipboard
Bare minimum websockets (hybi13/RFC) client for Android
Hello, socket.io allows since v0.7 namespaces which could be set to connect a server like http://mydomain.com/chat This could be very usefull as feature in this lib. For better understanding visit:...
https://github.com/codebutler/android-websockets/blob/master/src/com/codebutler/android_websockets/HybiParser.java#L290 must be patched like below. int code = (payload.length >= 2) ? ((payload[0]
This line uses Arrays.copyOfRange which is only available on Android 2.3+: https://github.com/codebutler/android-websockets/blob/master/src/com/codebutler/android_websockets/HybiParser.java#L337 Replacing it with this will make this library be compilable on Android under 2.3: http://stackoverflow.com/questions/7970486/porting-arrays-copyofrange-from-java-6-to-java-5
I'm having a little trouble receiving big messages from a node.js websocket server (if it's of any use, the server side uses [this](https://github.com/Worlize/WebSocket-Node) library). The connection seems to close with...