Updated.
Added option to pass in http server for web socket hosting.