Just enough long polling

Firebase launched a long time ago in a different Internet, one where Websockets were a relatively new feature for web browsers and support for them couldn't always be assured. Because of this, Firebase also includes support for a connection type called "Long Polling." This is where you issue a series of normal HTTP requests in a series which approximates the ability to send messages back and forth…