Hello everybody, topic title says it: I want to run network inside of a webworker. I'm working on porting a C++ project to web via emscripten and it works well so far, except for the network.
1. Webworker, also written in C++ and compiled via emscripten, works well. 2. Network code works well on the main thread. 3. No network while using the same code within the webworker. I even tried to catch traffic in wireshark and see nothing. connect(...) reports errno 113 "no route to host". Compiling with -s SOCKET_DEBUG=1 shows "connect: ws://127.0.0.1:11111/, binary" in browser console, but nothing happens. Did I forget to set some flag? According to the browsers bug trackers websockets within webworkers should work. -- You received this message because you are subscribed to the Google Groups "emscripten-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
