moved websocket backend to model folder