If i create socket and connect it immediately then socket never be open, because game will do many operations before done with the js loop. May be it is browser bug. To avoid this problem i create socket and connect it throught emscripten_async_call. But i don`t rewrite in game logic and code call select on not open socket. In this way info.hasData not exists.