title: How do I use Haxe sockets in a cross-platform way without blocking?
body: <p>Most guides surrounding the use of sockets with the Haxe toolkit rely on the use of threads, which are platform-specific. This is because sockets block by default, which makes them unsuitable for many types of applications, including games. </p>
  
  <p>I am aware that there is a non-blocking mode, but I can't get it to function without throwing an exception.</p>
  
  <p>How do I use sockets in a cross-platform way without relying on threading?</p>