Open mhpc0909 opened 11 years ago
I've tried all the instructions and ios is fine but android devices do not make any communication with server. ----------------------------------------------------------------- SERVER var io = require('socket.io').listen(8080);
var chat = io.of('/chat');
chat.on('connection', function(socket){ socket.emit('available_channel', 'asdfasdf'); });
----------------------------------------------------------------- CLIENT in Titanium 3.1
var io = require('socket.io-titanium'); var socket = io.connect('192.168.0.9:8080'); var chat = socket.of('/chat');
chat.on('available_channel', function(channels){ alert(channels); });
alert('hi there!!!');
android doesn't come in chat.on().
I've tried all the instructions and ios is fine but android devices do not make any communication with server. ----------------------------------------------------------------- SERVER var io = require('socket.io').listen(8080);
var chat = io.of('/chat');
chat.on('connection', function(socket){ socket.emit('available_channel', 'asdfasdf'); });
----------------------------------------------------------------- CLIENT in Titanium 3.1
var io = require('socket.io-titanium'); var socket = io.connect('192.168.0.9:8080'); var chat = socket.of('/chat');
chat.on('available_channel', function(channels){ alert(channels); });
alert('hi there!!!');
also added32768
android doesn't come in chat.on().