move websocket server to backend