Maybe I could use:
(<any>window).chrome.sockets.tcp.setPaused(_socketTcpId,false);
after
(<any>window).chrome.sockets.tcp.connect
if set .setPaused on false, when a socket is connected and un-paused, onReceive
events are raised again when messages are received (I read about the documentation … link below)
https://developer.chrome.com/apps/sockets_tcp#method-setPaused
what do you think about?