title: combining websockets and http
body: <p>I'm creating a program that wants to show statistics.
  For that I decided to use websockets and http. Websockets because it requires no polling but allows my server to push any changes (I'm open for suggestions for different solutions) so quick updates. For websockets I use the websocket++ library and for http I use libmicrohttpd.
  The program runs on Unix/Linux systems.</p>
  
  <p>Now using websocket++ creating the websockets is simple. I let the user decide on a portnumber and that's that. Same thing for http using libmicrohttpd.
  The problem now is, how can I point from html to that websocket service?
  I only know a portnumber (that listens on all network interfaces; it binds to 0.0.0.0) and not a hostname. I tried <a href="http://:8001/" rel="nofollow noreferrer">http://:8001/</a> (so without any hostname, or ip address) but at least firefox doesn't take that.
  So how can I resolve that?
  I could in theory let websocket++ do the http handling but that doesn't work for binary files like images and it also does not let you process HEAD-requests.</p>