nowelium / socket.io-titanium

socket.io for titanium mobile
http://youtu.be/10ogNjWCpyc
Other
136 stars 34 forks source link

StreamException #17

Open micheltlutz opened 11 years ago

micheltlutz commented 11 years ago

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);

foto

micheltlutz commented 11 years ago

LOG console device: Mar 5 11:50:57 iPhone-Michel profiled[36346] : (Note ) profiled: Service starting... Mar 5 11:50:57 iPhone-Michel profiled[36346] : (Note ) profiled: Recomputing passcode requirement message Mar 5 11:50:58 iPhone-Michel catacao[36316] : [ERROR] StreamException. Stream is not writable in -TiStreamProxy write: Mar 5 11:50:58 iPhone-Michel catacao[36316] : PBRequester failed with Error Error Domain=NSURLErrorDomain Code=-1001 "The request timed out." UserInfo=0x1d8892d0 {NSErrorFailingURLStringKey=https://gsp10-ssl.apple.com/use, NSErrorFailingURLKey=https://gsp10-ssl.apple.com/use, NSLocalizedDescription=The request timed out., NSUnderlyingError=0x1c51c5d0 "The request timed out."} Mar 5 11:50:58 iPhone-Michel catacao[36316] : [ERROR] Script Error = StreamException. Stream is not writable in -TiStreamProxy write: at ti-websocket-client.js (line 1). Mar 5 11:50:58 iPhone-Michel catacao[36316] : [ERROR] Attempt to close in invalid state: 16. in -TiNetworkSocketTCPProxy close: Mar 5 11:51:43 iPhone-Michel backboardd[26] : ALS: SetDisplayFactor: factor=0.0500 Mar 5 11:51:57 iPhone-Michel profiled[36346] : (Note ) profiled: Idled. Mar 5 11:51:57 iPhone-Michel profiled[36346] : (Note ) profiled: Service stopping.

nowelium commented 11 years ago

umm...

stongo commented 11 years ago

bump ... I have the same issue

nubu commented 10 years ago

Any new on this?