integrate the websocket and http server.