Server changes to support long-polling keep alives

#1781
Support long-polling keep alives on the JS client

#1781