the version combining http and websocket is complete, next step maybe some more tests