updating server to use http and websockets