An error occurs after data transmission, everything is well emit is done successfully, but after a few seconds without activity on the app an error screen appears with the information:
StreamException. Stream is not writable in -TiStreamProxy write:
Feb 21 15:36:58 iPhone-Michel catacao[13898] : [ERROR] Script Error = StreamException. Stream is not writable in -TiStreamProxy write: at ti-websocket-client.js (line 1).
Is there any procedure to be done or the error occurs due to bug?
code:
var io = require('socket.io-titanium');
var socket = io.connect('http://....');
//socket.send('hello world!!');
socket.on('news', function (message){});
var data = {
"room" : 1,
"message": 'mobitxt'
};
Ti.API.info('---> datadd' + data);
socket.emit('emit',data);
An error occurs after data transmission, everything is well emit is done successfully, but after a few seconds without activity on the app an error screen appears with the information:
StreamException. Stream is not writable in -TiStreamProxy write: Feb 21 15:36:58 iPhone-Michel catacao[13898]: [ERROR] Script Error = StreamException. Stream is not writable in -TiStreamProxy write: at ti-websocket-client.js (line 1).
Is there any procedure to be done or the error occurs due to bug?
code:
var io = require('socket.io-titanium'); var socket = io.connect('http://....'); //socket.send('hello world!!'); socket.on('news', function (message){}); var data = { "room" : 1, "message": 'mobitxt' }; Ti.API.info('---> datadd' + data); socket.emit('emit',data);