Correct websocket server and algo