def get_state_data(self):
        data = {'endpoint_class':self.endpoint_class,
                'endpoint_classes':self.get_endpoint_classes(),
                'params':self.api_request.params,}
        #TODO send params only if the api request was for this endpoint
        return data
Check if the timeout has been reached and raise a `StopIteration` if so.
dataset/ETHPy150Open zbyte64/django-hyperadmin/hyperadmin/endpoints.py/BaseEndpoint.get_state_data--crossover with--dataset/ETHPy150Open paddycarey/dweepy/dweepy/streaming.py/_check_stream_timeout