(self)
This method stops the EventStream subscription and removes it from the event_stream collection.
This method stops the EventStream subscription and removes it from the event_stream collection.
This method stops the EventStream subscription and removes it from the event_stream collection .
def Unsubscribe(self):
        """ This method stops the EventStream subscription and removes it from the event_stream collection. """
        if self.event_stream and self.event_stream.connected:
            self.request.get(f'https://{self.BASE_URL}/hmsweb/client/unsubscribe')
            self.event_stream.Disconnect()

        self.event_stream = None
def Unsubscribe ( self ) : if self . event_stream and self . event_stream . connected : self . request . get ( f'https://{self.BASE_URL}/hmsweb/client/unsubscribe' ) self . event_stream . Disconnect ( ) self . event_stream = None