Using the latest 2.0.0 module for Android.
Titanium SDK 6.1.0 GA.
Latest socket.io implementation on server
JDK version jdk1.8.0_131
Below is the code
var uri='http://ip:3000';
var io = require('socket.io'),
socket = io.connect(uri);
socket.on('connect', function () {
Ti.API.log('connected!');
});
Below is the error
TiHTTPClient: (TiHttpClient-133) [45,45] HTTP Error (java.io.IOException): 400 : Bad Request
[ERROR] : TiHTTPClient: java.io.IOException: 400 : Bad Request
[ERROR] : TiHTTPClient: at ti.modules.titanium.network.TiHTTPClient$ClientRunnable.run(TiHTTPClient.java:1266)
[ERROR] : TiHTTPClient: at java.lang.Thread.run(Thread.java:818)
Any solution for it would be really appreciated.