sc</a> -&gt; <a href="Network-Mom-Stompl-Patterns-Basic.html#t:OnError">OnError</a> -&gt; IO r -&gt; IO r</p><div class="doc"><p>Create a server that works in a background thread:
   The background thread (and with it the server)
   is running until the action passed in to the function (IO r)
   terminates; when it terminates, the background thread is
   terminated as well.
   <em>withServerThread</em> may connect to a registry
   (to serve as a provider of a balancer for instance),
   which is automaticall