close method

void close()

Disconnects the streaming connection if it is open.

Implementation

void close() {
  _keepAlive = false;
  client.closeStreamingConnection();
}