Compiling and running it generates undefined error. This works fine if I write similar code in JS (just to confirm that the websocket is being opened, and command being sent). Are there any subtleties of websocket I am missing here? I could go back to using ports with JS but I want to avoid this, and keep the solution as simple as possible.
Can I do just selective patch of WebSocket library by downloading github patch? If not, is there another simple workaround short of rebuilding the entire compiler?