def disconnect(self):
"""Request to close the session previously opened with
the connect() invocation.
"""
if self._stream_connection is not None:
# Close the HTTP connection
self._stream_connection.close()
log.debug("Connection closed")
print("DISCONNECTED FROM LIGHTSTREAMER")
else:
log.warning("No connection to Lightstreamer")
评论列表
文章目录