Networking from emscripten build

Is there a way to use UDP or OSC from inside an OF app built with empscritpen? I want to be able to serve a webpage on a local network (with all the ease of writing in OF) and send a UDP message to another piece of hardware on the local network. So far when I try to compile with ofxOSC or ofxNetwork included it fails on threaded functions.

no there’s no way to use UDP in the browser as far as i know (osc is also based on udp so that wouldn’t work either) apart from that those 2 addons use threads internally which isn’t supported in the browser either.

the only way to do networking from emscripten would be to use websockets (which is not wrapped in any core or addon class yet) or do an http request which you can do with ofURLFileLoader