To test your framework i use something like this on the iphone simulator
var io = require('socket.io-titanium');
var socket = io.connect('127.0.0.1:8080');
var chat = socket.of('/chat');
while running my server on my mac.
It connects and works great.
Then i decided to test it on android. Android emulator doesnt seem to work on 127.0.0.1
I can see in the logcat that the connection failed
To test your framework i use something like this on the iphone simulator
while running my server on my mac. It connects and works great. Then i decided to test it on android. Android emulator doesnt seem to work on 127.0.0.1 I can see in the logcat that the connection failed
But how do i get that error in my js file? As connect is done immediately on the socket when doing
It s too late to do
socket.on()
afterI really need to know if the conneciton failed! thank you