Running a standalone web server to maintain a persistent connection